I'm using the regex:
(?=<TABLE>).+(?<=</TABLE>)
in a replace to eliminate tables from a doc. Works fine except when there is a CRLF after <TABLE>, in which case it has no effect. Any suggestions???
Printable View
I'm using the regex:
(?=<TABLE>).+(?<=</TABLE>)
in a replace to eliminate tables from a doc. Works fine except when there is a CRLF after <TABLE>, in which case it has no effect. Any suggestions???
By default the period does not match carriage return. To allow this functionality, use the singleline option:
Code:Dim rx As New Regex("(?=<TABLE>).+(?<=</TABLE>)", RegexOptions.Singleline)