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

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to