procmail
[Top] [All Lists]

Re: regular exression question

2003-01-30 15:29:36
On Thu, Jan 30, 2003 at 04:40:52PM -0500, Manojav Sridhar wrote:

what is the difference between *deepa* and *deepa.* ???

man 7 regex is your friend:

A piece is an atom possibly followed by a single(!) ‘*’, ‘+’, ‘?’, or 
bound.  An atom followed by ‘*’ matches a sequence of 0 or more 
matches of the  atom.

In your case 'a*' matches a sequence of 0 or more 'a' characters, while 
'.*' matches a sequence of 0 or more of any character.

-- 
    Miernik          ____________________________________________________
___ ICQ: 4004001 ___/___ tel.: +48608233394 ___/  
mailto:miernik(_at_)ctnet(_dot_)pl
No Iraq war! http://www.globalexchange.org/campaigns/iraq/invadeIraq082702.html
Please call the White House +1-202-456-1111 or fax +1-202-456-2461 and say no!

Attachment: pgpofh3Bg0m4g.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>