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

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!
      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