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

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

sub-problem with regex


From: Alexander Stohr
Subject: sub-problem with regex
Date: Thu, 26 Sep 2002 19:13:23 +0200

i was doing this for several times:
  sub("[A-Z]*$", "", text);
but came to the conclusion that it is broken
since awk version 3.1.1 - i am using a RedHet beta of it.

strings like "something124abc" were converted to "something124"
which is really not what the above code should do.

luckily i came to the following work around:
  sub("[[:upper:]*$", "", text);

but in fact the awk program itself is now under heavy suspect
of beeing buggy. if you think you cant reproduce, then i will
take my time to look after your test cases for verification.

-Alex.

PS: please CC me on answers because i am not a list member.


reply via email to

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