2, So, Switch to ECMAScript ,request / slash can allow be escaped, because / is allowed in most places without escaping.
E.g 🐵Tampermonkey🆂 StylusStylish🔍Regular search in text editor .etc...
There are many Chrome extensions with RegExp functions, I personally have not seen one that needs to be escaped /
Other regular test sites are also allowed to escape, e.g. debuggex or jex.im/regulex (I don’t know, maybe they are not in ECMAScript mode,)
As long as it is not a place to write code, almost no escaping is allowed, especially where it is related to the URLs RegExp.
As / is not used as delimiter tcharacter, you do not need to escape it like in other RegExp environments.
3, Otherwise , at present, it is very inconvenient.
If you use the RegExp constructor you do not need to escape the slash, you are right, but 99% of developers do not use that, and thus need to escape the slash. Thus I've decided to mimic that behavior.
sorry for my English, translate by Google most 🤦🙈
related https://github.com/firasdib/Regex101/issues/1355
It will be convenient for ordinary users are not developers.
PCRE
can used/
directly , but it can not use?<=😭\d+)
see👇, maybe there are other restrictions.https://github.com/firasdib/Regex101/issues/1358
ECMAScript
,request/
slash can allow be escaped, because/
is allowed in most places without escaping.E.g
🐵Tampermonkey
🆂 Stylus
Stylish
🔍Regular search in text editor
.etc... There are many Chrome extensions with RegExp functions, I personally have not seen one that needs to be escaped/
Other regular test sites are also allowed to escape, e.g. debuggex or jex.im/regulex (I don’t know, maybe they are not in ECMAScript mode,)
As long as it is not a place to write code, almost no escaping is allowed, especially where it is related to the URLs RegExp.
3, Otherwise , at present, it is very inconvenient.
Implementation plan:
In https://regex101.com/settings, add an option switch(ON/OFF) for ECMAScript flavour.