>> put "this" & a string & "that" into myVariable
>What's that mean?
Nothing. It's a wrong statement, but we'll have to make sure this results
in an error message.
> find "hello" & a string matched & "world" in "hello, hello world
>world!"
>Is it ", hello " or ", hello world"?
You mean what "matched" would contain? Good question. I think it should be
",hello ", as "world" is specified as the other criterium after the "&". Of
course, if you did the find in "hello world", "matched" would contain a
single space.
>Must a match match the entire "in ..." part? Or should substring amtches be
>allowed? Does "a string" eat as few or as many characters as possible? Is
>backtracking required?
"a string" would eat as few characters as necessary to fulfill the
criteria. For "hello" & a string & "world" it would eat as many characters
as are between the first "hello" in the string and the first "world" after
that. The key here is finding the first match. Any subsequent ones need a
chunk expression or some other means to make the "find" command ignore the
start of the sctring passed.
>It would probably add--ummm--noticable complexity to Interpreter, but most
>of the code should be availible in a regexp library somewhere. I could
>probably swipe it from Perl, for example. Main problem would be translation
>to a regexp.
Shouldn't be too hard to make a regexp out of this, I guess. It's like
parsing a string, where "a string" would resolve to a wildcard character
"*". You'd just have to get it to be immediately seen as an expression, it
shouldn't be parsed as a string.
Cheers,
-- M. Uli Kusterer
------------------------------------------------------------
http://www.weblayout.com/witness
'The Witnesses of TeachText are everywhere...'
--- HELP SAVE HYPERCARD: ---
Details at: http://www.hyperactivesw.com/SaveHC.html
Sign: http://www.giguere.uqam.ca/petition/hcpetition.html