Tom Phoenix schreef:
> Dr.Ruud:
>> Gunnar Hjalmarsson:

>>> Are you saying that \d is no longer equivalent to [0-9]?
>>> If so, which digits does \d match besides [0-9]?
>> 
>> perl -wle'print "\x666"=~/\d/'
> 
>   perl -wle'print "\x666"=~/[0-9]/'
> 
> They both match; it seems they're just matching the second character,
> a 6. ("\x66" is the lowercase "f".) Maybe you meant this?
> 
>   perl -wle'print "\x{666}"=~/\d/'
> 
> That does seem to illustrate your point; [0-9] wouldn't match there.

Ah thanks, yes I meant the {one}. Better even like this:

   perl -wle 'print "\x{666}" =~ /^\d$/'

-- 
Affijn, Ruud

"Gewoon is een tijger."

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


Reply via email to