![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
RegEx for incorrectly closed HTML attribute?by Cody Pendant (Prior) |
on Nov 29, 2002 at 04:07 UTC ( [id://216418]=perlquestion: print w/replies, xml ) | Need Help?? |
Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on an BBS where there are sometimes serious errors with people typing their own hyperlinks.
What happens is people type <a href=" and then paste in a URL, and then fail to close the quotes, or indeed close the quotes but with a single quote, as in <a href="http://whatever.com/'> This causes all kinds of horrible problems for the remainder of the page.
Does anyone have a regex solution to this?
Back to
Seekers of Perl Wisdom
|
|