12个精通正则表达式的资源
正则表达式通常被视为很难掌握。但是,“不是所有”,他们只是看起来复杂,但绝对不难。
这里有12个很好的资源,来学习和掌握正则表达式。
I had started with no:1 (RegExplained) and suggest that you do so too. Watch the talk of Lea Verou and you’ll already be knowing it. After that, use others to improve your skills.
RegExplained
RegExplained is the project that thought me regex. It is a simple playground which highlights the matched text from a regex in real-time.
It is a project of Lea Verou and also supported with a talk (I suggest you watch it to start learning regular expressions quickly).
RegEx Guide By Mozilla
One of the most simplified regular expression guides on the net. Easy to understand and covers the most important stuff.
You may want to check what Microsoft docs tell too.
RegexPlanet
RegexPlanet allows testing expressions using any of the multiple languages. The expressions created can be shared and, a cookbook features handy regular expressions.
Debuggex
A web app for testing regular expressions. It has support for JavaScript, Python an PCRE.
Rubular
A popular regex editor for Ruby which inspired many other projects.
Scriptular
Regex tester for JavaScript (inspired from Rubular). It also has a quick reference of regular expression commands.
txt2re
A tool that helps extracting any given text visually by clicking on items in a filtered text.
A regular expression tester for PHP developers. The tool can also generate unique URLs so that you can share the code with others or keep working on later.
Rex V
A real-time regex tester with support for PHP, JavaScript, Python, Nodejs and Perl.
XRegExp
A JavaScript library for extending the capabilities of regular expressions. It provides new syntax, flags and methods.
A very exciting project that can change how developers use regex (like jQuery did for JavaScript).
It aims to make the regular expressions easy to read and write with commands like: .startOfLine() .then( "http" ) .maybe( "s" ) .then( "://" ) .maybe( "www." )
. Simple, huh?
Regex Crossword
A one-of-a-kind resource for improving your regex skills. It is similar to the classic puzzles where you are given a regular expression to guess the right letter for the field.