Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
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?
--
($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RegEx for incorrectly closed HTML attribute?
by PodMaster (Abbot) on Nov 29, 2002 at 07:01 UTC | |
|
Re: RegEx for incorrectly closed HTML attribute?
by boo_radley (Parson) on Nov 29, 2002 at 05:14 UTC | |
|
Re: RegEx for incorrectly closed HTML attribute?
by dingus (Friar) on Nov 29, 2002 at 08:50 UTC | |
by Abigail-II (Bishop) on Nov 29, 2002 at 09:57 UTC | |
by LAI (Hermit) on Nov 29, 2002 at 17:55 UTC | |
by Abigail-II (Bishop) on Nov 29, 2002 at 18:53 UTC | |
by LAI (Hermit) on Nov 29, 2002 at 19:07 UTC | |
|