[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] regex question?

>>>>> "Joseph" == Joseph A Knapka <Joseph> writes:

[... egrep examples elided ... ]

    Joseph> How interesting. Is this behavior possibly different in
    Joseph> Gnu grep vs other greps? 

        Perl's regexen are this way, and checking the man for a GNU
grep shows:

       Repetition takes precedence over concatenation,  which  in
       turn  takes  precedence  over alternation.  A whole subex-
       pression may be enclosed in parentheses to override  these
       precedence rules.

        So `|' is the lowest precedence, '*' et al are the highest
precedence (bind more tightly).

Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U

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.