in reply to Re: Wx Regex Tester
in thread Wx Regex Tester

Dog and Pony sez :

You could always precompile the regexp:

I had a compiled regex in for a while, and it worked well for matches. But my understanding of compiled regexes led me to think I'd need something like :
$testtext2 =~ s/$retext/$repltext/for substitutions.

Which seems like I'd need to add in another text field for the replacement text, and then another text field (or checkboxes) for the flags. This would actually make it look quite similar to JEdit's RETester, in fact.

I'll put it on the to do list.

Replies are listed 'Best First'.
Re: Compiling your regexes (boo)
by Dog and Pony (Priest) on Apr 11, 2002 at 14:30 UTC
    You could still use the precompiled regexp to do that, if that makes things better. :) $repltext on the other hand, should of course not be compiled.
    $testtext2 =~ s/$regexp/$repltext/
    Still haven't been home and awake long enough simultaneously... but I'll get there, if nothing else at the weekend. Stupid friends wanting to do non-nerd stuff. And outside! Where there is light from non-monitor sources! Heathens... :)
    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.