Finding matched parentheses
Mark Wieder
mwieder at ahsoftware.net
Fri Jul 26 01:35:37 EDT 2013
Geoff-
Thursday, July 25, 2013, 9:53:47 PM, you wrote:
> regex is notoriously unable to handle recursion. To see endless heated
> debate, search the web for how to parse HTML using regex.
To be fair, the blame is mostly on HTML, not regex. But there's enough
blame to go around. No worries.
> Here is a fairly short function that searches for the outermost matched
> pairs of characters.
"outermost" is different from matched. You might want to find the
matching parenthesis for "lineDelim()" in
put stripHTML(
url("http:://www.www.com"),
lineDelim("/n"
),
cos(theta)
)
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list