in reply to Wx Regex Tester
You could always precompile the regexp:
... or something like that. Also, instead ofmy $regexp = qr/$retext/ or $resulttext->AppendText ("Error running regex : $errstr\n"), retu +rn; # regexp ok, code continues $ismatch = $testtext2 =~ /$regexp/;
you could do something like this right off the bat:while (defined (${++$i})){ push @match, ${$i} }
@match = $testtext2 =~ /$regexp/;
Anyhow, I will try this program when I get home, where I have WxPerl installed. Since I am about to take the time to learn it a little myself, it is very nice to see that others are already using it!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Compiling your regexes (boo)
by boo_radley (Parson) on Apr 10, 2002 at 17:56 UTC | |
by Dog and Pony (Priest) on Apr 11, 2002 at 14:30 UTC |