Code:
<html> <head> </head> <h1>ghfghfgh</h1> <body> ghjhjg hghjgjk fghfjh hjkhkjl <b>jhjkhjk</b><b>uyyjhyu</b> <br/><br/> <p>this is paragraph</p> <p>this is paragraph1</p><p>this is paragraph2</p> </body> </html>
first read the html file after that i use belo regular expression .Here i face problem to retrive the tag that is two times in the line
Code:
while(<html>) {
if( $_ =~/<(\w+)\/?.*?>/gi) {
push @data,$1;
}
}
Comment