How to use regex to match multiple line with reluctant
2360
My regex is matching too much. How do I make it stop?
130250
regex: creating an exception for r:a.?b.?c
153258
Find the line number which contains the pattern using custom regex delimiter
32434
How to escape text for regular expression in Java
44036
What regex can match sequences of the same character?
101144
How to match, but not capture, part of a regex?
50014
Problems with regex in grep
1177
Regular expression to match a line that doesn't contain a word
60090
Pattern to match L, but not L[_]
134860
Match two words that is on the same line
104343
Regex expression to match whole word ?
70348
What is the correct way to break a long expression across multiple lines?
127860
A regular expression to exclude a word/string
156045
How do I grep for lines containing either of two words, but not both?
53598
Print lines between (and excluding) two patterns
129301
Need to perform Wildcard (*,?, etc) search on a string using Regex
112581
Replacing pattern after nth match is found on each line?