in reply to
Regexp find all matches
Is there any reason you are using look-behind?? Your requirement that you state amount to
my (@arr) = $string =~ /[1-9][a-zA-Z0-9]{3}/g ;
Or am I missing something here??
Manav
Comment on
Re: Regexp find all matches
Download
Code
Replies are listed 'Best First'.
Re^2: Regexp find all matches
by
Murcia
(Monk)
on Mar 03, 2005 at 10:14 UTC
The reason is, not to find many false positives!
[reply]
Re^3: Regexp find all matches
by
manav
(Scribe)
on Mar 03, 2005 at 11:37 UTC
Can you manually list what will be the true positives in this $string
$string = "<html>Test text PDB code ID 1TGS 1O6S 1TGS bla bla \nPDB code 1ILW 1ILV";
Manav
[reply]
In Section
Seekers of Perl Wisdom