RegExpEditor

RegExpEditor is a free software. It may help you for understanding regular expression mechanism with Qt. It is really annoying when you have to write a regexp and must run your application to test it. RegExpEditor is an efficient tool to find out the relevent regexp you need. It is mainly dedicated for capturing text.

ScreenShot:

qregedit

regexpeditor

regexpeditor2

Documentation:

Write your regexp into the red field:
-red means invalid syntax, and error messages are displayed in the right text editor.
-green means the syntax is valid.

Select your options:

-Case Sensitivy [default: true]
-Minimal matching [default: false]
-Apply on each line of the left text editor [default: false]

The result is displayed into the right text area.
When Apply on each line option is set, the result is on the same line. Otherwise a captured text per line.

If you need to put a regexp you made with RegExpEditor into If you need to put a regexp you made with RegExpEditor into your source code. Don’t forget to double escaping: character.

Example:

Valid regex forRegExpEditor:

(\d+)(?:\s*)(cm|inch)

The same regex must appear like this, in your Qt code:

(\\d+)(?:\\s*)(cm|inch)

Authors :

Renaud Guezennec