Collection of resources and tools for regular expressions (I) and regular expressions
Collection of resources and tools for regular expressions (I)
Author: chszs, reprinted with note. Blog homepage: http://blog.csdn.net/chszs
A regular expression is a template used to criticize character combinations in strings. In JavaScript, regular expressions can also be objects. In the RegExp tool, these templates can be used for method execution and testing to match, replace, search, and split strings.
Regular Expressions are often considered difficult to learn and grasp. In fact, it is easy to learn.
This article collects mainstream regular expression resources and tools in the industry, which can accelerate your learning on regular expressions. Using these tools can also improve your development skills.
1. RegExr
Address: http://gskinner.com/RegExr/
RegExr is an online tool that allows you to edit and test regular expressions. It provides a simple interface for inputting regular expressions, and you can see the Matching content in the real-time editable source text window. The Sidebar also provides regular expression descriptions and use cases to help you learn. The RegExr tool is built using Flex 3 and uses ActionScript 3 as the built-in RegExp engine. Although RegExr is not as powerful as RegExBuddy, it is available online and free of charge. You can also save the matching mode locally or share it with the Community database for retrieval.
2. RegExplained
Address: http://leaverou.github.io/regexplained/
RegExplained is a real-time matching tool for online regular expressions.
3. Txt2re
Address: http://txt2re.com/
Txt2re is a tool that visually extracts arbitrary text by clicking filtered text items. It is very simple and suitable for various types of input, including HTML and other similar scripting language input.
4. RegexPlanet
Address: http://www.regexplanet.com/
RegexPlanet supports multiple programming languages to test expressions. The created regular expressions can be shared, and a manual for regular expressions is provided.
5. Rubular
Address: http://rubular.com/
Rubular is a Ruby-based regular expression editor.
6. RexV
Address: http://www.rexv.org/
RexV is a real-time Regular Expression Tester that supports programming languages such as PHP, JavaScript, Python, Node. js, and Perl.
7. RegexPal
Address: http://regexpal.com/
RegexPal is built based on the JavaScript language and is a simple regular expression tester.
How can I improve my ability to answer historical questions? And thinking about problems?
Read more historical books and celebrity stories
Regular Expression
Of course I did the test. Maybe I have incorrect understanding of your requirements. This is my first offer:/^ $ /. This regular expression matches an empty string.
I have just tested the following regular expression. So far I have not found any matching string. The matching principle is as follows: match the starting position of a row (any string will have this position, right), followed by a word boundary (as long as the string starts with a number letter, ). However, the next step is the end of the line. This is the key. No word boundary exists unless the string is not empty. Therefore, this regular expression cannot match any string. Because such a positive string does not exist, that is, it contains only one word boundary and does not contain one word!
I don't know if it can meet your requirements.
/^ \ B $/
See what I am talking about: "match the starting position of a line (any string will have this position, right), followed by a word boundary (as long as the string starts with a number letter, it will satisfy ......"