REGEX-Escape from: (_|^)((?i)(?<phrase>(payment(s?):[^_:]+)))(?=_|$)

Your Input:
Result, the escaped string:
\(_\|\^\)\(\(\?i\)\(\?\\(payment\(s\?\)\:\[\^_\:\]\+\)\)\)\(\?\=_\|\$\)

What must the escaping look like for:
(_|^)((?i)(?<phrase>(payment(s?):[^_:]+)))(?=_|$)

The excaped text for use in a regex is:
\(_\|\^\)\(\(\?i\)\(\?\<phrase\>\(payment\(s\?\)\:\[\^_\:\]\+\)\)\)\(\?\=_\|\$\)


Ads