REGEX-Escape for: config('ranchcomputing.ux.activate_new') ? route('pages.home') : route('v2.home')

Your Input:
Result, the escaped string:
config\('ranchcomputing\.ux\.activate_new'\) \? route\('pages\.home'\) \: route\('v2\.home'\)

What must the escaping look like for:
config('ranchcomputing.ux.activate_new') ? route('pages.home') : route('v2.home')

The excaped text for use in a regex is:
config\('ranchcomputing\.ux\.activate_new'\) \? route\('pages\.home'\) \: route\('v2\.home'\)


Ads