Regex: Match a string up to a pattern (Which may not exist)
108858
match until a certain pattern using regex
126141
Regular expression to match a word or its prefix
60000
Regex to match string containing two names in any order
127860
A regular expression to exclude a word/string
123398
How to match multiple occurrences of a substring
63332
How can one represent a string pattern with prohibited substrings?
64366
Matching an optional substring in a regex
50542
Remove lines from file up to a pattern, unless the pattern doesn't exist
6320
How to determine if a string contains any matches of a list of strings
75716
How can I find the location of a regex match in Perl?
78395
Checking whole string with a regex
84913
How to "inverse match" with regex?
1293
Match patterns on list of Strings
89219
How can I find and replace only if a match forms a whole word?
101140
How can I find all matches to a regular expression in Python?
54939
Regular expression: match start or whitespace
149956
Adapting "Find and Replace" functionality to work with Patterns