Cels Forum



Subject:
From:
URL:
E-mail:
Search (Fri Oct 22 11:14:37 1999 )
Yann Stettler
http://www.animanga.com
stettler@animanga.com

Do you know that you can search something at
the beging of a message with "^" (Ie:  ^Hello )
or at then end of a message with "$" (Ie: bye$ ).

"\d" will match any digit
"\D" will match any non digit
"\w" will match any word character (a-z0-9).
"\W" match a non word character
"."  match any character
"*"  mean that it should match the previous character
     0 or more time.
" "  mean that it should match the previous character
     1 or more time.
...

So believe me when I say that "^Re: (\w\w\w) .* \1"
will match any message with a title begining by "Re: "
followed my a 3 characters word, followed my a space
and any number of other characters and finaly followed
by the same 3 characters word preceded by a space.
(you don't believe me ? -sigh-)
That would, among others, give you all the titles
that contain two time the word "cel" or "the"... :)

Cheers,
Yann Stettler



[ Back to Cels Forum ]


Message thread :

Shop Gallery Auction WebRing Cels.org
Back to the Cels Forum




Copyright ©1997 Yann Stettler and CohProg Sarl. All rights reserved