Regex multiline wildcard (?s)
- Sean O'Shea
- Aug 28, 2020
- 1 min read
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.