Lorem ipsum Lorem ipsum <<foo bar>> lorem impsum <<foo lorem ipsum <<foo>> and <<foo bar >> lorem. ...
I think it can be phrased as: Find the *first* "<<foo " ...that is not followed by ">>" or "....>>" (where .... signifies any characters) ...OR that IS followed by "<<" or "....<<" (or, for that matter, any other forbidden characters inside a short form macro call) But the end of the line should not stop the search. The point is to catch the first uncomplete "<<foo" macrocall however long the tiddler text is. <:-) To keep it real, one could phrase it like so: <$set name=re value="\[\[foo"> {{{ [[HelloThere]get[text] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b43c6c75-85a9-44c0-b06d-bd9bcea6d307%40googlegroups.com.