Regular expression to stop at first match
2360
My regex is matching too much. How do I make it stop?
22752
Remove unnecessary close tags using regex
35989
Match a pattern only when NOT preceded or followed by another pattern
28187
How to replace the first occurence in an expression instead of replacing all?
123575
Regular expression to remove one parameter from query string
83695
re.search() only matches the first occurrence
100970
Remove first character from a string if it is a comma
68039
How to Regex search/replace only first occurrence in a string in .NET?
116912
Regex only match if character is not included directly before desired string
83933
Matching the first/nth element of a certain type in the entire document
71986
How to make Regex choose words separately
70340
Regular expression to skip character in capture group
124258
How do you match one of two words in a regular expression?
23199
How to match the first word after an expression with regex?
57228
Check for whitespace at beginning of string
98217
Using Sequence to delete a part of an expression
151087
Replace all occurrence of character except first one