The regulator is easy to use

Source: Internet
Author: User
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! "

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.