Add end-of-string to regex example
This commit is contained in:
parent
3ad7193cf9
commit
d9951e2505
1 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@ The regex pattern format is Ruby, but it needs to be convertible to JavaScript,
|
||||||
|
|
||||||
Here are some examples:
|
Here are some examples:
|
||||||
|
|
||||||
- Use `\.internal@domain\.com` to mark email addresses containing ".internal@domain.com" internal.
|
- Use `\.internal@domain\.com$` to mark email addresses ending with ".internal@domain.com" internal.
|
||||||
- Use `^(?:(?!\.ext@domain\.com).)*$\r?` to mark users with email addresses NOT including .ext@domain.com internal.
|
- Use `^(?:(?!\.ext@domain\.com).)*$\r?` to mark users with email addresses NOT including .ext@domain.com internal.
|
||||||
|
|
||||||
Please be aware that this regex could lead to a DOS attack, [see](https://en.wikipedia.org/wiki/ReDoS?) ReDos on Wikipedia.
|
Please be aware that this regex could lead to a DOS attack, [see](https://en.wikipedia.org/wiki/ReDoS?) ReDos on Wikipedia.
|
||||||
|
|
Loading…
Reference in a new issue