Mahoota has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas?$thisresult = ($teststring =~ /[aft][edt].[ftg]...v{2,3}/g); if ($thisresult) {if (!$lastresult) {print "Expression found\n"; } } $lastresult = $thisresult;
edited: Thu Jun 27 14:24:25 2002 by jeffa - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: storing string matched by regular expression
by vladb (Vicar) on Jun 27, 2002 at 14:33 UTC | |
|
Re: storing string matched by regular expression
by jsegal (Friar) on Jun 27, 2002 at 14:36 UTC | |
|
Re: storing string matched by regular expression
by mikeirw (Pilgrim) on Jun 27, 2002 at 14:37 UTC |