Pattern
/ /
g global find all matches, not just the first
i ignoreCase A–Z matches a–z
m multiline ^ and $ match line boundaries
s dotAll . matches newlines too
Test string
Matches
/ Enter a pattern to begin
Ready Regex Tester · nettools