June 2002
Beginner
759 pages
80h 42m
English
extract_tagged
extract_tagged(text,"TAG1","TAG2",undef,nesting_allowed)
Extracts the initial substring of
textthat is bounded by an HTML or XML
tag:
# Extract HTML tags but don't allow <HTML> to be embedded
($extracted, $left) =
extract_tagged($text,"<HTML>","</HTML>",
undef,{bad=>["<HTML>"]});
extract_multiple($text, ...)