REGEX-Escape for: (profiles: prod)([\s\S]*?)(?=password:\s(.*))

Your Input:
Result, the escaped string:
\(profiles\: prod\)\(\[\\s\\S\]\*\?\)\(\?\=password\:\\s\(\.\*\)\)


Ads

What must the escaping look like for:
(profiles: prod)([\s\S]*?)(?=password:\s(.*))

The excaped text for use in a regex is:

\(profiles\: prod\)\(\[\\s\\S\]\*\?\)\(\?\=password\:\\s\(\.\*\)\)


Ads