[ale] regex question?

Joseph A Knapka jknapka at earthlink.net
Thu Mar 14 05:50:12 EST 2002


Fletch wrote:
> 
> >>>>> "esoteric" == esoteric  <Geoffrey> writes:
> 
> [...]
> 
>     >> '03/(19|20)/02'

This will match 03/120/02 or 03/190/02. Re operators
bind to the adjacent atoms, so if you want an operator
to apply to more than a single character, you need a
group:

03/(19)|(20)/02

will match 03/19/02 or 03/20/02, and only those.

Hoping egrep syntax hasn't changed since last time I
read the man page,

-- Joe
  Using open-source software: free.
  Pissing Bill Gates off: priceless.

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list