Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2014 13:57:03 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        "'Devin Teske'" <dteske@FreeBSD.org>
Cc:        'RW' <rwmaillists@googlemail.com>, freebsd-questions@freebsd.org
Subject:   RE: awk programming question
Message-ID:  <alpine.BSF.2.00.1401231346520.80613@wonkity.com>
In-Reply-To: <04a201cf1878$8ebce540$ac36afc0$@FreeBSD.org>
References:  <F01EB9CE742DEB17DB6B51C7@localhost> <alpine.BSF.2.00.1401230900270.76961@wonkity.com> <20140123185604.4cbd7611@gumby.homeunix.com> <04a201cf1878$8ebce540$ac36afc0$@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 23 Jan 2014, dteske@FreeBSD.org wrote:

>> From: RW [mailto:rwmaillists@googlemail.com]
>> Note that awk supports +, but not newfangled things like *.
>
> With respect to regex, what awk really needs is the quantifier syntax...
>
> * = {0,} = zero or more
> + = {1,} = one or more
> {x,y} = any quantity from x inclusively up to y
> {x,} = any quantity from x or more

I think RW meant to type that awk did not have the newfangled "?" for 
non-greedy matches.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1401231346520.80613>