I have this regex, which works perfectly in regex101, but will not work in actual python. The find string exists in the test string, but python will not find it.
find_str = r'^([sS]*)(?<=nn)([ n-]+Once in a Lifetime Values[ n-]+?)(?= if)([sS]+)$'
logging.info(f'Checking for existence....n -- {re.search(find_str, text)}n'
This produces a fail:
2024-05-29 16:05:23: INFO - Checking for existence....
-- None
Any help?