buggy awk regex handling?

2012-08-02 Thread kaltheat
Hi, I tried to replace three letters with three letters by awk using the sub-routine. I assumed that my regular expression does mean the following: match if three letters of any letter of alphabet occurs anywhere in input $ echo AbC | awk '{sub(/[[:alpha:]]{3}/,cBa); print;}' AbC As you can

Re: buggy awk regex handling?

2012-08-02 Thread RW
On Thu, 02 Aug 2012 13:20:52 +0200 kaltheat wrote: Hi, I tried to replace three letters with three letters by awk using the sub-routine. I assumed that my regular expression does mean the following: match if three letters of any letter of alphabet occurs anywhere in input $ echo

Re: buggy awk regex handling?

2012-08-02 Thread Warren Block
On Thu, 2 Aug 2012, RW wrote: On Thu, 02 Aug 2012 13:20:52 +0200 kaltheat wrote: I tried to replace three letters with three letters by awk using the sub-routine. I assumed that my regular expression does mean the following: match if three letters of any letter of alphabet occurs anywhere in