-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Januk Aggarwal !
On Wed, 31 Jan 2001 22:19:41 -0800 GMT your local time,
which was 01.02.2001, 07:19 (GMT+0100) where I live, you wrote:
GE>> Wow, being mentioned in the subject with the king of regex is quite an
GE>> honour, isn't it?
> I hope you're not serious.
Of course not! Sorry, I forgot the <joking></joking>-tags!
> I would hate to think that any type of
> hierarchy existed amongst the membership.
Oh, no, never thought of that. I only wanted to introduce my explanation
that it was _you_ who helped; I had just an additional question, that was why
I appeared in that thread!
[...]
> Actually, it is
> interesting to see what happens if you put in some option settings.
> Try changing the regexp to:
> "(?i)^(.*)(@)(.*)$"
^(.*)(@)(.*)$
[EMAIL PROTECTED]
1: <januk>
2: <@>
3: <canada.com>
(?i)^(.*)(@)(.*)$
[EMAIL PROTECTED]
1: <januk>
2: <@>
3: <canada.com>
<big grin>Mmmmh, I think I should take an example that uses capital
letters</big grin>
> Actually, this is also an interesting example to try the ungreedy
> settings. Try the following regexps in this template as well:
> "(?i)^(.*?)(@)(.*?)"
> "(?i)(.*?)(@)(.*?)$"
> "(.*)(@)(.*)"
> "(.*?)(@)(.*?)"
"(?i)^(.*?)(@)(.*?)"
januk@
1: <januk>
2: <@>
3: <>
Ok, I expected this: "read as less as is necessary to match" and this is
exactly "januk" before it matches the @.
But why is no "canada.com" necessary? I guess it has to do with the
anchor?!
"(?i)(.*?)(@)(.*?)$"
[EMAIL PROTECTED]
1: <januk>
2: <@>
3: <canada.com>
Well, here it has to match "canada.com" to match because of the anchor.
"(.*)(@)(.*)"
[EMAIL PROTECTED]
1: <januk>
2: <@>
3: <canada.com>
"(.*?)(@)(.*?)"
januk@
1: <januk>
2: <@>
3: <>
Ha, that idea with the anchor wasn't that good! Here you don't look for
them, but I guess it now has to do with the minimizer?!
The funny thing is, that it makes no difference whether you use "caseless"
or not ((?i)) (I tested it with other mailadresses).
- --
Best regards,
Gerd
======================================
Using The Bat! Version 1.49
PGP-Keys on request mailto:[EMAIL PROTECTED]?subject=send_key
- ----------------------------------------------------------------------------
Echte Männer schreiben mit Edlin Windows-Anwendungen in Assembler.
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Digitally signed for authentication purposes ! Gerd Ewald
iQA/AwUBOnmnq0y/sHrVbGGHEQIYDQCffE7A42owIaJ1k4ME4lSUnQV4YYgAn1yh
0xLsMM/4rr6k7558TCcU1hHT
=W6Wm
-----END PGP SIGNATURE-----
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]