Re: Better regrex method

2002-08-14 Thread Mike(mickako)Blezien
Hi Rob, Yea, I think that would work better, much appreciated ;) >>"Hanson, Rob" wrote: > > This works for me... > > # sample data > my @tags = qw(K001900 L001234 GP001675); > my @prefixs = qw(SP 8 L K GP TP MP); > > # join them with pipes for use in the regex > my $prefix = join('|', @prefix

RE: Better regrex method

2002-08-14 Thread Hanson, Rob
This works for me... # sample data my @tags = qw(K001900 L001234 GP001675); my @prefixs = qw(SP 8 L K GP TP MP); # join them with pipes for use in the regex my $prefix = join('|', @prefixs); # match prefix against each tag, seprate the parts. # the "o" switch cause the regex to only compile onc