A
ahjiang
Hi all,
Need some advice on this.
I have a string say,
$line = <html> Hello World </html> Hello world
$line =~ s,\s,,g;
This would returns me <html>HelloWorld</html>Helloworld
$line =~ s,<html>.*</html>,,g;
This would returns me Helloworld. Contents including <html></html> is
removed..
How can i achieve
<html>HelloWorld</html> Hello world
Only whitespace within the <html> tags is removed
Need some advice on this.
I have a string say,
$line = <html> Hello World </html> Hello world
$line =~ s,\s,,g;
This would returns me <html>HelloWorld</html>Helloworld
$line =~ s,<html>.*</html>,,g;
This would returns me Helloworld. Contents including <html></html> is
removed..
How can i achieve
<html>HelloWorld</html> Hello world
Only whitespace within the <html> tags is removed