-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Januk Aggarwal !


On Sun, 28 Jan 2001 03:29:30 -0800 GMT your local time,
which was 28.01.2001, 12:29 (GMT+0100) where I live, you wrote:

[...]

GE>> Ah, example: (\d*?)[a-z]  does this mean:

GE>> "find none [...] digit if followed by a lowercase letter and store digit
GE>> in subpatt or, if it is the only way the pattern matches, take as many
GE>> digits as necessary followed by a lowercase letter to store the digits in
GE>> subpatt"?

> Note the editing, but yes, that's the idea.

Aaahhhh, I think I'm going to understand!! The editing [...] shows my
error.

[...]

> Well, consider this:  Suppose you have the string "1234567a", and you
> apply your example.  Then the minimum number of digits before the "a"
> is zero.  So you'd get an empty subpattern.  Now if you remove the "?"
> from your example, you'd match the maximum number of digits, and so
> the subpattern would hold "1234567"

Yippiiee, I think I got it! In other words, with the ? added to the
metacharacter the regex always takes the left border if the pattern
matches:

* means {0,} so 0 is taken
+ means {1,} so 1 is taken
? means {0,1} so 1 is taken
[...]

> Maybe this variation from the help file one will help.  Suppose you
> have two sentences on a single line:

Ooops, I should have a closer look to the English help file. I usually use
the German one.

[...example snipped...]

Great, that's it. It made "plopp" in my brain! I tested this one in the new
German help file regex-test-feature. Works perfect.

> Is it any clearer now?

Yes, definitely. May be it was a small step for you, but be assured it was
a very big jump for me! Thank you again!!

> (I'll keep asking until you stop asking good
> questions.  Keep them coming.)

Haha, thanks. I will do that. Thanks for your patience!

- --
Best regards,
 Gerd
======================================
Using The Bat! Version 1.49c
PGP-Keys on request mailto:[EMAIL PROTECTED]?subject=send_key
- ----------------------------------------------------------------------------
The right to be let alone is indeed the beginning of all freedom.
     (Supreme Court Justice William O. Douglas 1952,
      Public Utilities Commission v Pollak)

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Digitally signed for authentication purposes ! Gerd Ewald

iQA/AwUBOnQRaky/sHrVbGGHEQLpIwCggAWY2zz+nWCSXaSiy9juO82EHFEAoKHL
umwp3ixM4O/YCqBGcg0M7hvl
=nP8Q
-----END PGP SIGNATURE-----



-- 
______________________________________________________
Archives   : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>

You are subscribed as : [email protected]


Reply via email to