in reply to Re: close end tag
in thread close end tag

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: close end tag
by gem555 (Acolyte) on Aug 21, 2009 at 11:11 UTC
    I think this doesnot match. Before I have to close it. When next '<' some text '>' exists it should close.
    #!/usr/bin/perl while(<DATA>){ s/(<a\s\w*[=|]\w*)</$1<\/a>/g; print $_; } __DATA__ <a href="www.google.txt>Click here<span>