REGEX-Escape from: (_|^)((?i)(?<phrase>()(?=_|$)

Your Input:
Result, the escaped string:
\(_\|\^\)\(\(\?i\)\(\?\\(\)\(\?\=_\|\$\)

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

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


Ads