Commit 685a85c6 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs/improve-regex-suggestion' into 'master'

Add end-of-string to regex example

Closes #58031

See merge request gitlab-org/gitlab-ce!26302
parents 3ad7193c d9951e25
......@@ -244,7 +244,7 @@ The regex pattern format is Ruby, but it needs to be convertible to JavaScript,
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.
Please be aware that this regex could lead to a DOS attack, [see](https://en.wikipedia.org/wiki/ReDoS?) ReDos on Wikipedia.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment