Match Reaper `BYPASS` with regex

See here for the original answer.

Here is an example of the following matching regex at work:

BYPASS.*?(?:WAK \d \d)

This is how you implement the regex in Python:

import re
matches = re.findall(r'BYPASS.*?(?:WAK \d \d)', string, flags=re.S|re.M)

I had to get rid of the capture group with ?: and set the flags as a parameter to get it to work, but this should be what you need.


Tags

  1. python (Private)
  2. regex (Private)
  3. reaper (Private)
  4. stack-overflow (Private)
  5. answer (Private)