Select a group of lines in regex that are under a heading line
759
How do I match any character across multiple lines in a regular expression?
17305
using perl, how to select last 2 lines in the case of each row has same word?
101144
How to match, but not capture, part of a regex?
112581
Replacing pattern after nth match is found on each line?
35989
Match a pattern only when NOT preceded or followed by another pattern
108858
match until a certain pattern using regex
82797
Regex to match any character including new lines
1814
How do you access the matched groups in a JavaScript regular expression?
118486
Detecting pattern at the end of a line with grep
107892
output neighbouring lines with line numbers while grepping
74038
How do I grep for multiple patterns on multiple lines?
152030
How to match a pattern with a pattern?
101842
How to find line with least characters
47106
How to match all occurrences of a regex
47217
regex negative look around with 2 adjacent matches
126315
How to find overlapping matches with a regexp?
156045
How do I grep for lines containing either of two words, but not both?