Re: mathing only one type of characters

2003-06-19 Thread R. Joseph Newton
Kevin Pfeiffer wrote: > > This is my "only slightly fancier" version - still uses DATA though; > (critique/advice always welcome): > > #!/usr/bin/perl > use warnings; > use strict; > > # zero_or_more > > my $valid_chars = get_valid_chars(); > my $regex = qr{^[$valid_chars]*$}; These might be a li

Re: mathing only one type of characters

2003-06-19 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Janek Schleicher wrote: > Pedro Antonio Reche wrote at Wed, 11 Jun 2003 13:38:18 -0500: > >> I would like to match a string if it has only cero or more of a defined >> set of characters. >> For example: >> if "GACT" are the characters, then >> >> GACTNGACT ## T

Re: mathing only one type of characters

2003-06-11 Thread Janek Schleicher
Pedro Antonio Reche wrote at Wed, 11 Jun 2003 13:38:18 -0500: > I would like to match a string if it has only cero or more of a defined > set of characters. > For example: > if "GACT" are the characters, then > > GACTNGACT ## This string should not be matched because it has the extra > charact

Re: mathing only one type of characters

2003-06-11 Thread Rob Dixon
Pedro Antonio Reche wrote: > Hi All; > > I would like to match a string if it has only cero or more of a defined > set of characters. > For example: > if "GACT" are the characters, then > > GACTNGACT ## This string should not be matched because it has the extra > character N > GACCC ## This c