[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] quick Reg exp exercise



On Tue, 2004-06-29 at 16:20, Chris Johnson wrote:
> The first one is that all html tags should be lowercase, at least that's
> what I think the W3C error is getting at.

Depends which version of HTML you're attempting to validate against, but
none of the ones you should really care about require lower case tag
names.

>   Is there a reg exp that will
> search through all my files and exchange <XX> for <xx> and </XX> for </xx>
> without messing up variable names (is PHP case sensitive) (eg <XX
> color=$MyColour>

HTML Tidy has some respect for PHP, you could just trying throwing the
template through that for an automagic correct version. Any bits of PHP
it messes up you will probably be able to correct easily by just
comparing with the original.

Cheers,

Alex.

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.