REGEX-Escape for: ^((?=.*(HDM|HDM_LOCAL|Medway|Eclipse|Bluespier|STORCOM))(?=.*(database|bak|mdf|ldf))).*$

Your Input:
Result, the escaped string:
\^\(\(\?\=\.\*\(HDM\|HDM_LOCAL\|Medway\|Eclipse\|Bluespier\|STORCOM\)\)\(\?\=\.\*\(database\|bak\|mdf\|ldf\)\)\)\.\*\$


Ads

What must the escaping look like for:
^((?=.*(HDM|HDM_LOCAL|Medway|Eclipse|Bluespier|STORCOM))(?=.*(database|bak|mdf|ldf))).*$

The excaped text for use in a regex is:

\^\(\(\?\=\.\*\(HDM\|HDM_LOCAL\|Medway\|Eclipse\|Bluespier\|STORCOM\)\)\(\?\=\.\*\(database\|bak\|mdf\|ldf\)\)\)\.\*\$


Ads