Regular expressions that cross lines
The Endeavour 2025-12-19
Summary:
One of the fiddly parts of regular expressions is how to handle line breaks. Should regular expression searches be applied one line at a time, or should an entire file be treated as a single line? This morning I was trying to track down a LaTeX file that said “discussed in the Section” rather than […]
The post Regular expressions that cross lines first appeared on John D. Cook.