Skip to content

Commit f775a1a

Browse files
nbenitezsubatoi
andauthored
Informing a regex syntax should include required slash separators (#35234)
Co-authored-by: Ben Ahmady <[email protected]>
1 parent 032b71d commit f775a1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/search-github/github-code-search/understanding-github-code-search-syntax.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -317,4 +317,8 @@ If code search guesses wrong, you can always get the search you wanted by using
317317

318318
## Case sensitivity
319319

320-
By default, code search is case-insensitive. Searching for `True` will include results for _uppercase_ `TRUE` and _lowercase_ `true`. You can do case-sensitive searches by using a regular expression with case insensitivity turned off, for example `(?-i)True`.
320+
By default, code search is case-insensitive, and results will include both uppercase and lowercase results. You can do case-sensitive searches by using a regular expression with case insensitivity turned off. For example, to search for the string "True", you would use:
321+
322+
```text
323+
/(?-i)True/
324+
```

0 commit comments

Comments
 (0)