End Regex pattern on first occurrence in multiline
2360
My regex is matching too much. How do I make it stop?
151087
Replace all occurrence of character except first one
759
How do I match any character across multiple lines in a regular expression?
70348
What is the correct way to break a long expression across multiple lines?
68039
How to Regex search/replace only first occurrence in a string in .NET?
149692
C# RegEx: Ignore case... in pattern?
123869
Reliably Remove Newlines From String
8112
How to add text to end of line when pattern is matched?
96252
JavaScript: replace last occurrence of text in a string
148063
Python regex - why does end of string ($ and \Z) not work with group expressions?
47615
Awk: if pattern not found add some text at the end of file
105605
Find each line matching a pattern but print only the line above it
88430
Using RegEx to balance match parenthesis
112581
Replacing pattern after nth match is found on each line?
110326
Find both pattern and position of multiple regex matches in Ruby
58846
Regex to match a C-style multiline comment
35989
Match a pattern only when NOT preceded or followed by another pattern