REGEX-Escape for: ^(?=.*\s((Username|pwd|password|bearer))\s).*$

Your Input:
Result, the escaped string:
\^\(\?\=\.\*\\s\(\(Username\|pwd\|password\|bearer\)\)\\s\)\.\*\$


Ads

What must the escaping look like for:
^(?=.*\s((Username|pwd|password|bearer))\s).*$

The excaped text for use in a regex is:

\^\(\?\=\.\*\\s\(\(Username\|pwd\|password\|bearer\)\)\\s\)\.\*\$


Ads