On Tue, 2009-09-15 at 09:30 +0200, Gregory Machin wrote:
> Hi
> 
> I'm look for code example that will only select a string containing 3
> digits .. The string cant be less than 3 digit , can't be more than 3
> and can't contain any other characters.
> 
> I have googled and found code that will find 3 consecutive digits
> within a string or at the beginning.
> 
> Any ideas ?
> Thanks
> G
> 

So you want a regex that will identify a three digit string (any 3
digits or 3 specified digits?) and anchor to both the start and end of
the string?

Tim Bowden


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to