in reply to Re: regex to match a literal dot near end of string
in thread regex to match a literal dot near end of string

No, + and * are equally greedy. The former just requires at least one character to match, while the latter does not.

_____________________________________________________
Jeff japhy Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

  • Comment on Re: Re: regex to match a literal dot near end of string

Replies are listed 'Best First'.
Re: Re: Re: regex to match a literal dot near end of string
by MZSanford (Curate) on Jul 18, 2001 at 20:43 UTC
    <braindead> Not sure what i meant, when i think , i knew that. Sorry 'bout that </braindead>
    OH, a sarcasm detector, that’s really useful