For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2004 > Re: AW: Regexp match question !









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: AW: Regexp match question !
Daniel Stellwagen

2004-03-31, 3:34 am

Schell, Holger wrote:

> Hi,
> Maybe not the best solution but try something like this
> \b[0-9]\b
> Means that there are boundaries before and after and in the middle should be a one digitnumber
> \b\d\b
> works similar.
> ? is searching step by step, so this means:
> $number = 11;
> it starts with searching for a digit or nothing, that is true cause in front of 11 there is no digit, so your regex will be true.
>
> Start to search in the net with important things like:
> Greedy, nongreedy (very important)


Thanks for the speedy answer!

servus
d a n i e l
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com