regex - Matching multiline text using regular expression in java -
my input sample is:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/tr/rec-html40"> <head> <meta http-equiv=content-type content="text/html; charset=windows-1252"> <meta name=progid content=word.document> <meta name=generator content="microsoft word 15"> <meta name=originator content="microsoft word 15"> <link rel=file-list href="detailedfoot_files/filelist.xml">
what want want select whole html tag , replace something. using regular expression
<html.*>
if use regular expression in mather.dotall manner, whole text input replaced.
i cant figure out how it. kind of appreciated.
Comments
Post a Comment