Advanced Regular Expression Patterns

Warning: the following patterns are for advanced users only. Proceed with caution.

1. Matching Any Character

Use .* to match any character, including special characters like \n and \t.

Learn more about matching any character

2. Matching Groups

Use () to capture groups, like (\d{4}) to match four digits.

Learn more about matching groups

3. Matching Special Characters

Use \ to escape special characters, like \. or \..

Learn more about matching special characters

4. Negative lookahead

Use (?! to perform a negative lookahead, like hello(?!world

Learn more about negative lookahead