bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gawk] RE bug??


From: Stepan Kasal
Subject: Re: [gawk] RE bug??
Date: Thu, 7 Jul 2005 13:20:56 +0200
User-agent: Mutt/1.4.1i

Hello,

[please keep address@hidden in the Cc:, so that our conversation is
added to the searchable archives.]

On Wed, Jul 06, 2005 at 09:11:11AM +0930, Stephen Davies wrote:
> > "Silver" matches the regexp.
> > You probably meant /^[[:upper:][:digit:]]+$/

> Correct but it does not match the second.

"Silver" and "Actinium" both match /[[:upper:][:digit:]]+/ and
/[A-Z][A-Z0-9]+/

You have to add anchors to the regex, ^ to the beginning, $ to the end.

HTH,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]