Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a3e4baf

Browse files
matching and excluding specific characters
1 parent 0eb8f9c commit a3e4baf

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

‎README.md‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,25 @@ var g=0
1313
```
1414

1515
### wildcards
16-
As Joke in a deck of cards can represent any card, dot(.) can be used to match any character, be it alphanumeric, symbol or whitespace. This metacharacter ovverrides period. To match a period, it needs to be escaped using a slash **\\.**
16+
As Joker in a deck of cards can represent any card, dot(.) can be used to match any character, be it alphanumeric, symbol or whitespace. This metacharacter ovverrides period. To match a period, it needs to be escaped using a slash **\\.**
17+
18+
### matching specific characters
19+
Specific character can be matched by defining them inside square brackets[]. E.g. **[abc]**. This will match only a, b or c and nothing else.
20+
```text
21+
match can
22+
match man
23+
match fan
24+
skip dan
25+
skip ran
26+
skip pan
27+
Corresponding regex: [cmf]a
28+
```
29+
30+
### excluding specific characters
31+
Specific characters can be excluded using square brackets and hat(^). E.g. **[^abc]** will match any character except letters a,b, or c.
32+
```text
33+
match hog
34+
match dog
35+
skip bog
36+
Corresponding regex: [^b]o
37+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /