Ten essential .NET development gadgets (2): Regulator

zhaozj2021-02-12  172

Ten essential .NET development gadgets (2): Regulator

Author: James Avery translation: lucentoff

Source: http://msdn.microsoft.com/msdnmag/issues/04/07/musthavetools/default.aspx

Copyright Notice: The copyright belongs to the original author, please indicate the source!

Regulator

Regulator is recently added to my essential tool list. It is a full-featured expression building and test tool that is easy to use. Regular expression defines a character string matching mode based on characters, characters, and character sequences, typically used to verify user input or subsequent sub-string lookups in a long string, for example, find URLs or E-mail addresses on the web.

You can enter a regular expression and some test content (or open files) in Regulator, using it to test the matching result of the regular expression, as shown in Figure 2.

Figure 2 Regulator

The document window is included in a simple regular expression [0-9] *, the lower right corner is the test input, the lower left corner shows the matching result of the regular expression. It is much easier to write and test regular expressions like this in a separate application than in your own program.

One of the best features of Regulator is to search for online regular expressions of Regexlib.com sites. For example, if you enter a string "Phone" in the search box, you will find the regular expressions of various phone numbers.

Regulator is written by Roy Osherove, download URL: http://royo.is-a-geek.com/regulator.

[The following is the translator's supplement, taken from: http://royo.is-a-geek.com/regulator] regulator

Regular expression operation support

Support three most common regular expressions:

Find multiple matches

Replace the text by expression

Split the text by expressive

Regexlib.com integration

From regexlib.com database search and import expressions and show the use of graphical wizards to submit users their own regular expressions to the regexlib.com database support proxy server

Text Editor

Sentence Funitional Multi-Document Tab Interface "Quick Add" feature allows users to easily select Syntax to insert "Quick Add" menu item is fully customizable, just simply modify the configuration files related to the program directory to support parentheses match make the selected Text "escape" to a specific string without manual input / s, / n, and other escape characters, and open selections: Create a folding area to facilitate reading only part of the expression in the editor Perform matching and replacement

Performance analysis

Timetry for graphical display matching and replacement operations, easy to observe optimization

Precise display matching and replacement operation

Text fragment tool

Simple and easy-to-use common text clip toolbar, convenient expressions Type text snippet toolbars are fully customizable, any text clip can be edited or deleted, or you can add users' own text clips.

The text clip inserted contains "<>" symbols will be automatically selected, allowing you to prepare a modified segment that saves time.

Common Functions

Multithreaded operation: Cancellation of long-run expression matching and replacement can be minimized to the system tray

"Recently Opened File" menu

Other small features

转载请注明原文地址:https://www.9cbs.com/read-6614.html

New Post(0)