Stylus regex to JavaScript regex
JavaScript regex to Stylus regex
Differences
^
and$
are added automatically (you must match the entirety of the URL).\
must be escaped using CSS syntax (not escaping it works fine though)./
no need to escape (but you can).- That said, JavaScript regex is a valid Stylus regex.
Links
- Stylus wiki - Advanced matching with Regular Expressions
- RegEx101 - build, test, and debug regex
- RegExr - Learn, Build, & Test RegEx
- Nodexr - Graphical regular expression editor
- Debuggex - Online visual regex tester. JavaScript, Python, and PCRE
- Regex Generator - Generate regular expressions from sample texts