Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: number of i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 2233 of 2236
Post > Topic >>

Re: number of interval expression matches as argument

by Ed Morton <morton@[EMAIL PROTECTED] > May 11, 2008 at 08:10 AM

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.




 4 Posts in Topic:
number of interval expression matches as argument
paklet@[EMAIL PROTECTED]   2008-05-10 20:07:44 
Re: number of interval expression matches as argument
Ed Morton <morton@[EMA  2008-05-10 22:33:25 
Re: number of interval expression matches as argument
paklet@[EMAIL PROTECTED]   2008-05-10 22:15:10 
Re: number of interval expression matches as argument
Ed Morton <morton@[EMA  2008-05-11 08:10:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 20:51:47 CDT 2008.