Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Jun 15, 2024
1 parent 2c12341 commit a60ffce
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ For `^`s not act as negation are not required to be escaped:

Also for `-` and `[`/`]`

:::hint
:::info
It's recommended to always escape metacharacters in character classes
:::

Expand All @@ -65,5 +65,9 @@ It's recommended to always escape metacharacters in character classes
- `\s` matches any *whitespace character*, like tabs, spaces, line breaks.
- `\S` matches any character that is *not a whitespace character*

> In `.NET`, `\w` matches not only `[a-zA-Z0-9_]`, it also includes other letters like Cyrillic and Thai.
> `\s` also matches whitespace characters in Unicode in `.NET` and `JavaScript`
:::info

- In `.NET`, `\w` matches not only `[a-zA-Z0-9_]`, it also includes other letters like Cyrillic and Thai.
- `\s` also matches whitespace characters in Unicode in `.NET` and `JavaScript`

:::

0 comments on commit a60ffce

Please sign in to comment.