REGEX-Escape for: \\s*,\\s*[\\d\\.]+(?:%?\\s*,\\s*[\\d\\.]+)?)%?\\s*\\))\\s*$\/i,

Your Input:
Result, the escaped string:
\\\\s\*,\\\\s\*\[\\\\d\\\\\.\]\+\(\?\:%\?\\\\s\*,\\\\s\*\[\\\\d\\\\\.\]\+\)\?\)%\?\\\\s\*\\\\\)\)\\\\s\*\$\\\/i,

What must the escaping look like for:
\\s*,\\s*[\\d\\.]+(?:%?\\s*,\\s*[\\d\\.]+)?)%?\\s*\\))\\s*$\/i,

The excaped text for use in a regex is:
\\\\s\*,\\\\s\*\[\\\\d\\\\\.\]\+\(\?\:%\?\\\\s\*,\\\\s\*\[\\\\d\\\\\.\]\+\)\?\)%\?\\\\s\*\\\\\)\)\\\\s\*\$\\\/i,


Ads