It has been more than three years since the previous version of RegEx was released. The newly designed RegEx 3 was released for developers.
The new version is developed based on Silverlight and can be installed locally. It adopts a Metro style similar to windowsphone7.
The new version has two main functions:
- Supports complex and Multiple matching and replacement at an unlimited level
- The processed group content can be referenced with the $ @ symbol during replacement.
These two functions mainly solve the following problems:
- Lengthy expression structure.
When matching a complex format, the expressions used are not only lengthy, but obscure as tianshu. When you modify a symbol, you may suffer infinite problems.
The Infinitely multiple replications function greatly improves this situation. You can split the replications into several steps for separate processing, so that the ideas are clear and expressions are easy to maintain.
- Impossible task.
Regular Expressions are omnipotent, but the number of thousands is not large. Many formats are impossible or difficult to use one expression. In many cases, we need to write a newProgramTo solve the problem, and when the $ @ reference function is available, many problems can be solved.
The $ @ symbol allows reference to the processing result of the target group. For example, if we used to reference the content of group 1 in the form of $1 During replacement, we can replace the $1 group with regular expressions, the replacement result is then referenced in the form of $ @ 1, which is extremely useful in processing complex formats.
Start using regex3 now:Http://www.cnblogs.com/SkyD/articles/regex3.html
Tip: you can right-click the program to install it on the desktop and run it out of the browser:
Getting started
First, enter the characters to be processed in the source text box, and paste them into the clipboard:
Then, enter the expression and matching options:
Enter the alternative content and alternative options:
Click "replace:
In this case, the matching items and results are displayed in the left column and displayed to view:
At this point, you can view nodes with multiple results through the set record navigation function on the right side:
In this case, you can continue to replace any node with regular expressions to meet your requirements.
After all the processing is complete, click the copy final output result button to copy the following outputtext node text to the clipboard:
You can use the import/export function to read and save all data:
Note
The name of $0, $ {funcname}, or $ @ {parameters} is the reference mark at the time of replacement, the above three forms represent the group, the naming group, and the processed naming group respectively. When replacing the form, you can reference the content of the child node in the form of $ or reference the content of the child node in the form of $.
The child nodes that can be referenced by the selected node are all represented in yellow.
The following [105] indicates that the Group has 105 items. You can view each item by sliding the navigation bar:
Tips
Click any oneNodes starting with $After, pressCTRL + cYou can directly copy the reference characters when replacing them to the clipboard:
In addition, there is a more convenient way, that is, to directly point the mouse on the node starting with $Right-clickTo directly copy the referenced characters to the clipboard:
If the processing result of the referenced sun-level node cannot meet your requirements, you can continue to process it. For each layer of processing, there will be one more @:
In this way, your expression can be extended like a tree chart, but it never gets out of the trunk.