top of page

Regex multiline wildcard (?s)

Here’s a follow-up to the Tip of the Night for August 23, 2020 which discussed how to use (?m) to run a multiline regular expression search.


Using (?s) at the beginning of a regex search will let you search from in front and behind while also using a wildcard.



This search will locate any four digits which appear in another string on any line.

Comments


bottom of page