Nope... the . loses its metaness when inside the character class...
where the regexp *does* stuff up is that it allows more than one decimal 
point in the string...

deen "yayy I know something!" hameed

On Fri, 25 Jan 2002, John Edwards wrote:

> Oh. One more thing.
> 
> Your regex should have the . escaped. Currently it is matching on either a
> number or *any character* between the a and z. Although this works, it may
> bite you if you have a line like this...
> 
> 30000034364717283459322a15f32zM    042001H
> 
> which you don't want to include in the results.
> 
> Here is how it should look
> 
> /a([\d\.]+)z/
> 
> John

-- 
Deen Hameed - [EMAIL PROTECTED] - May The Source Be With You, fLuke



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to