Changes between Version 19 and Version 20 of Features/RegexEditor


Ignore:
Timestamp:
03/18/11 16:21:48 (3 years ago)
Author:
szabgab
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Features/RegexEditor

    v19 v20  
    11== Description == 
    22 
    3 Regex Editor for building and debugging regular expressions  
     3Padre provides an easy way to build and analyze regular expressions compatible with Perl 5. 
    44 
    5 Padre provides an easy way to build and analyze regular expressions compatible with Perl 5. 
     5The '''Regex Editor''' can be used for building and debugging regular expressions. 
     6 
     7 1. You can open the Regex editor via '''Tools -> Regex Editor''' 
     8 1. At the top you will see 5 check-boxes for the modifiers of the regex 
     9 1. The first window called '''Regular Expression''' is where you can type in the regex. By default you will see \w+ in there 
     10 1. The '''Replace with text''' contains '''Baz''' and is interesting when you are trying to build a substitution 
     11 1. '''Original text''' is the place where you should type in sample strings you'd like to match. By default it contains '''Foo Bar''' 
     12 1. '''Matched text''' is a copy of the Original text with the actual match  (in the default case '''Foo''') being red and underline 
     13 1. '''Result from replace''' contains the result of a substitution. By default it shows. '''Baz Bar''' 
    614 
    715[[Image(regex_editor.png)]] 
     
    1624The regex editor currently provides a single way to build both regexes and substitutes. 
    1725 
    18  1. Open the Regex editor via '''Tools/Regex Editor''' 
    19  1. At the top you see 5 check-boxes for the modifiers of the regex 
    20  1. The first window called '''Regular Expression''' is where you can type in the regex. By default you will see \w+ in there 
    21  1. The '''Replace with text''' contains '''Baz''' 
    22  1. '''Original text''' contains '''Foo Bar''' 
    23  1. '''Matched text''' '''Foo Bar''' with '''Foo''' being red and underline 
    24  1. '''Result from replace''' contains '''Baz Bar''' 
    2526 1. Regex {{{ \d+ }}} Text: {{{ Foo 123 Bar }}}, Expected Match: 123 
    2627 1. Regex {{{ \d* }}} Text: {{{ Foo 123 Bar }}}, Expected Match: empty string before F and to give a warning accordingly (in 0.84 this marks the whole string)