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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -