NYCPHP Meetup

NYPHP.org

[nycphp-talk] [OT] grep assistance

Paul Houle paul at devonianfarm.com
Thu Sep 28 22:19:44 EDT 2006


Peter Sawczynec wrote:
> 62[8-9]|6[3-9][0-9]|7[0-8][0-1]
>
> Using your clues, above will match 628 through 781 only, correct?
>
> Peter
>   
   No,  it doesn't match 779.  This is why awk is a better way to do 
this than grep...  It's too hard to understand what these regexes do and 
too easy to make a mistake writing them.



More information about the talk mailing list