Stylus regex to JavaScript regex
JavaScript regex to Stylus regex
Differences
\must be escaped using CSS syntax (\\). It's escaped automatically if you're using the "Applies to" field in the stylus editor./no need to escape (but you can\\/🤯).- You must match the entirety of the URL (no need to add
^and$). - 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