wiki:Features/RegexEditor

Version 14 (modified by szabgab, 3 years ago) (diff)

--

Description

Regex Editor for building and debugging regular expressions

Padre provides an easy way to build and analyze regular expressions compatible with Perl 5.

Test Case

The regex editor currently provides a single way to build both regexes and substitutes.

  1. Open the Regex editor via Tools/Regex? Editor
  2. At the top you see 5 check-boxes for the modifiers of the regex
  3. The first window called Regular Expression is where you can type in the regex. By default you will see \w+ in there
  4. The Replace with text contains Baz
  5. Original text contains Foo Bar
  6. Matched text Foo Bar with Foo being red and underline
  7. Result from replace contains Baz Bar

#542
regex editor
#760
Clone and Substitution mode of txt2re
#899
(wishlist) Preferences: Use regex editor for the TODO regex
#921
regex syntax error
#922
Regex editor keeps first language after language change.
#923
(wishlist) special (tab) characters should be also available in regex editor
#924
(wishlist) user-defined regex library, previously defined regexes, and Regexp::Common in the Regex Editor
#925
(wishlist) offer Regex Editor in context menu when cursor is on a regular expression
#926
Escape key does not work most of the time in the regex editor
#960
regex editor improvement ideas
#1032
Regex Editor: Escape sequences don't work in "Result from replace"
#1072
Regex editor: help button
#1140
Regex editor reverses flags on insert
#1169
Regex Editor does not understand \Q
#1170
Add undo to the regex editor
#1171
Regex Editor highlighting seems to be broken

Related tickets: #1171, #1170, #1169, #1140, #1072, #1032, #960, #926, #925, #924, #923, #922, #921, #899, #760, #542,

For ideas install kregexpeditor or regexxer on Linux or try Regex Coach: http://weitz.de/regex-coach/ on Windows See also http://www.regexbuddy.com/

regex editor in 0.84

TODO

  • Support various versions of the perl 5 regexes (5.8, 5.10, 5.12 etc)
    • There should be an option (a selector on this window) to decide which regex dialect to support
    • (That is, there are certain new features in the regex engine and information about then under the buttons should be displayed along witht the minimum version required)
  • Support Perl 6 style regexes
  • Probably the regex and substitute part should be separated. At the top should be
    • Regular Expression
    • Original text
    • Matched text
    • checkbox to enable/disable substitution
    • Replace with text window
    • Result from replace window

Attachments (1)

Download all attachments as: .zip