Self-http://anf.cnblogs.com/
The concept and function of a regular expression are not described in detail. Regular Expressions are hard to write (difficult to think about), so there are many tools to help us write regular expressions. The regulator is one of the best (well-known on msdn)ArticleTen must-have tools every developer shocould download now). The official regulator website is http://sourceforge.net/projects/regulator /. This article briefly introduces the use of the regulator (v2.03 ).
The regulator window consists of the following parts: Web search, RegEx analyzer, snippetscontrol, expression input area, match result area, and waiting for resolution region. What is important is the RegEx analyzer, expression input area, match result area, and waiting for parsing. By default, the Web search area occupies a large position and may need to be adjusted.
Basic usage: In the expression input area and the "to be parsed" area, enter your expression and the text to be parsed, and click "match" in the menu bar. The result is displayed in the match result area.
if you want to figure out the meaning of a regular expression, you can use RegEx analyzer (in the View menu). However, this function sometimes cannot parse the result, in this case, you can change the content in the expression input area or the content in the "to be parsed" area (for example, adding a space) to parse the correct result. For example, if I enter \ D {2}-\ D {5}, the system will parse any digit exactly 2 times-any digit exactly 5 times. This helps us understand a complex regular expression.
other useful functions: Generate Code (C # Or VB. net), directly compiled into DLL, retrieved Regular Expressions (Web Search) from the website, and saved common expressions (snippetscontrol.
speaking of regular expressions, there is also a well-known tool: expresso http://www.ultrapico.com /. This tool has a detailed introduction on codeproject, and the production time is earlier than the regulator. The author of the regulator was also affected by Expresso before the regulator was developed. "The original idea for the regulator came from a simple RegEx tester called" expresso ". it was simple and easy to use (to a certain degree), but it mainly prompted the idea in me that I cocould build something similar with features that I wished I had.
So thanks, Expresso. Couldn't have done this one without ya! "