--- Lars Hecking <[EMAIL PROTECTED]> wrote:
> Alexandre Oliva writes:
> > On Aug 29, 2000, Earnie Boyd <[EMAIL PROTECTED]> wrote:
> >
> > > AFAIK '^ *+' is a regular expression and not an extended regular
> > > expression.
> >
> > `+' after `*' isn't portable, IIRC. In fact, I don't understand what
> > we're trying to accomplish with that construct. It makes no sense at
> > all to me.
>
> That's what I wrote to Earnie. To match a literal plus sign, it
> needs to be escaped.
I've test the expression with GNU grep 2.2 and with HP_UX 10.20 both match the
string as I expected. However, if + after * isn't portable, and it makes since
to me that it shouldn't then the correct solution is to quote the + not to use
egrep or -E.
Cheers,
=====
---
Earnie Boyd: <mailto:[EMAIL PROTECTED]>
__Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
__Minimalist GNU for Windows__
Mingw32 List: <http://www.egroups.com/group/mingw32/>
Mingw Home: <http://www.mingw.org/>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/