REGEX-Escape for:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

Your Input:

Ads

Result, the escaped string:

Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64; rv\:88\.0\) Gecko\/20100101 Firefox\/88\.0

Ads

What must the escaping look like for:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

The escaped text for use in a regex is:

Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64; rv\:88\.0\) Gecko\/20100101 Firefox\/88\.0


Ads