A
anony
Hi,
I'm playing around with HTML pattern matching, and have a questions about
parsing more than one line of text. If I want to parse multiple lines of
text for a match, do I have to explicitly specify \n appearances in my
expression (meaning I would have to know how many lines I'm dealing with
ahead of time)? Seems like there's another way to do it. For example, say
I want to capture a string beginning with <tr> and ending with </tr> that
spans multiple lines in the HTML source. How do I tell it to include
newlines in the search without doing \n.*\n.* etc.
Thanks!
Brian
I'm playing around with HTML pattern matching, and have a questions about
parsing more than one line of text. If I want to parse multiple lines of
text for a match, do I have to explicitly specify \n appearances in my
expression (meaning I would have to know how many lines I'm dealing with
ahead of time)? Seems like there's another way to do it. For example, say
I want to capture a string beginning with <tr> and ending with </tr> that
spans multiple lines in the HTML source. How do I tell it to include
newlines in the search without doing \n.*\n.* etc.
Thanks!
Brian