Remove HTML remove aligment using Java -


i have faces issue removeing alignment in html document.

 <html>   <head>    </head>   <body>     <p style="margin-top: 0" align="center">       hello world     </p>     <p style="margin-top: 0" align="center">       java world     </p>   </body> </html> 

my issue how remove alignment of first paragraph out affecting second paragraph . if use regex will remove alignment of second para also. appricite comment regarding issue.

use replacefirst function.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -