-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
(e-mail address removed) (nick) wrote in
What I'm doing is searching for the tag <script runat="server"> and
replacing it with <TAG><script runat="server"></TAG>. However, the
runat="server" cannot be quoted, as in <script 'runat="server"'>.
There can also be other parameters in the runat tag, such as <script
language="jscript" runat="server">. In this case the replacement would
be <TAG><script language="jscript" runat="server"></TAG>. So, I can't
simply strip out the quoted text.
Any ideas?
If you're parsing HTML(XML), use a module for parsing HTML(XML). Regexes
are going to be a lot of work for that task, and will likely not handle
all the cases you need it to.
Also, it seems very strange that you're putting a tag pair around just a
start tag.
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBP8j09WPeouIeTNHoEQIacgCeMXPy/H4wmCraJDneKDhICLGo54kAn3r7
+Z/VZU92BaFlKO0Pa+dK3dRo
=N91t
-----END PGP SIGNATURE-----