Perl regular expression that only keeps characters until first newline
759
How do I match any character across multiple lines in a regular expression?
134297
Need a regex to exclude certain strings
34859
Ruby, remove last N characters from a string?
110742
Splitting string by the first occurrence of a delimiter
103946
Python regular expressions - how to capture multiple groups from a wildcard expression?
28702
How to remove line breaks (no characters!) from the string?
98761
Regular expression to match any empty line or any line starting with a specified character
60826
Regular expression matching a multiline block of text
85145
Select two consecutive words by regular expression
128571
Determining if a URI is valid using Perl regex
56403
Is there a way to delete the first character from a text file once it is read?
120721
Why can't I match my string from standard input in Perl?
36211
Remove the first character of a string
1177
Regular expression to match a line that doesn't contain a word
32721
Removing lines from text file that contain string at beginning and string at end - and keep one
10632
sed regular expression behaving differently than in vim and perl?
136673
How to print file content only if the first line matches a certain pattern?