On 5/11/2008 12:15 AM, paklet@[EMAIL PROTECTED]
wrote:
> Hi Ed,
>=20
> thank you for your quick answer. :-)
>=20
> On May 11, 12:33 pm, Ed Morton <mor...@[EMAIL PROTECTED]
> wrote:
>=20
>>> sub(/([A-Z]* *){num}/,"",string)
>>
>> sub("([A-Z]* *){"num"}","",string)
>=20
>=20
> Somehow I was believing that a regex in gawk has to be inside
> of two `/=B4=B9
No, it can be a variable or a constant string too.
> Looks like I have to do some more reading on regex... ;-)
>=20
> Regards,
> Sirko
>=20
> =B9(http://www.gnu.org/software/gawk/manual/gawk.html#Regexp)
Yes, that's where it's all described...
Ed.


|