regex question

Mark Wieder mwieder at ahsoftware.net
Fri Dec 2 02:51:45 EST 2005


Martin-

Thursday, December 1, 2005, 2:06:31 PM, you wrote:

> matchChunk(tRawText, "(?s)<B>(.+?)</B>", tPos, tEnd)

Thanks to all for the great replies. The .+? syntax does indeed solve
my problem, as does the uppercase U. I puzzled over this for a while,
trying to figure out why the ? made a difference after I already
specified the pattern I wanted, and then suddenly the light bulb went
off and I got it. It's specifying *at most* one occurence of the
string. Brilliant. Regex rules.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list