[TAG] Need a shell regex; having problems

Thomas Adam thomas_adam at bonbon.net
Thu Jun 3 00:11:37 MSD 2004


On Wed, 2 Jun 2004 15:57:37 -0400
"Jay R. Ashworth" <jra at baylink.com> wrote:

> I'm trying to come up with a shell glob that will match this
> traditional regex, and I don't know bash well enough to get it right;
> any suggestions appreciated:
> 
> ...\.[0-9]{2,5}aa.
> 
> sel.234aab
> prc.37382aaa
> out.8888aad

```
???\.[0-9]{2,5}aa.*
''

This assumes for bash that you have:

```
shopt -s extglob
'''

-- Thomas Adam

-- 
"Annie Hall leaves New York in the end. Press rewind, and Woody gets her
back again." -- "Look Inside America", Blur.





More information about the TAG mailing list