-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Januk Aggarwal !
On Sat, 27 Jan 2001 13:25:20 -0800 GMT your local time,
which was 27.01.2001, 22:25 (GMT+0100) where I live, you wrote:
GE>> PMFJI,
> I'm not sure what that means, but that's ok.
Pardon Me For Jumping In
[...]
>>> "(?is)
> The round brackets are special characters, and so they are not matched
[...]
> so this means we're setting options.
Thanks: case insensitive and dot means any character incl. newline.
[...]
>>> (^Credit\s*Card.*?$)
[...]
GE>> followed by any character, occurrence 0-inf. Again the "?" which
GE>> normally means 0-1 occurrence of the character, but this doesn't
GE>> make sense here to me.
> The "?" character has three meanings depending on context.
[...]
> If the "?" is immediately after another repeat operator (*?, +?, {x,y}?, ??)
> Then it makes the match "ungreedy." That means "match the pattern the
> fewest possible number of times." See the helpfile under Repetition
> for more detail and an example.
Ah, example: (\d*?)[a-z] does this mean:
"find none or one digit if followed by a lowercase letter and store digit
in subpatt or, if it is the only way the pattern matches, take as many
digits as necessary followed by a lowercase letter to store the digits in
subpatt"?
I'm not sure that I understood that because: if there is 1 digit and a
letter, the digit is stored; two digits and a letter dito, three digits
dito...... That is the same as the metacharacter * or {0,}
Excuse my "stupidness", can you give an example for that?
> The third meaning I explained at the beginning.
Yes, options. But I found another occurrence of the ? in so-called
Assertions. I understood the help file there.
[...]
>>>(.*?\n)
GE>> Here we are again: "?". At least: it has to be followed by a newline to be
GE>> matched.
> The reason I did this is because I want all characters on the one (and
> only one) line. So because "." will match newline characters, I have
> to make sure that I only match the fewest possible characters before
> finding a newline.
Although I understood the example with the spring in a box I still do not
see how this works practical (see above).
[...Spring...]
>>>"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="1"%SUBPATT="2"
GE>> Well, obviously the first bracket-pair does not give value for the first
GE>> SubPatt. So it has to have a different meaning.
> Right. With the explanation above, does this make more sense?
Yes, thank you!
[...]
- --
Best regards,
Gerd
======================================
Using The Bat! Version 1.49c
PGP-Keys on request mailto:[EMAIL PROTECTED]?subject=send_key
- ----------------------------------------------------------------------------
Der Pullover einer Frau sitzt richtig, wenn die Männer nicht mehr
atmen können.
(Zsa Zsa Gabor)
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Digitally signed for authentication purposes ! Gerd Ewald
iQA/AwUBOnPkbEy/sHrVbGGHEQLZMQCggQ7tXpfWhZNjc2EGkKArq01ay6YAoKuK
eRDQiwPrDSj8RZbDy7KyigdD
=LxCZ
-----END PGP SIGNATURE-----
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]