RE: CSS class names should be lowercase?

David 1cog <[email protected]> 28 Jun 2003 16:42:10 -0000
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <67eb30ec676122bccf0863f1d341a9cf@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=188781#188781
----------------------------------------------------------------

Hi Eric

Either I've not explained clearly what I want to do or I'm not seeing the solution (I just looked at DW which doesn't appear to offer any functionality over the tools I already have).

It's easy to find exact strings and convert to lowercase, e.g.

Find class="stockWarning" and replace with class="stockwarning".  No problem.

What I need to do is find class="XxXxX" and replace with class="xxxxx" in every PHP document, where 'XxXxX' is any combination of alpha characters, upper or lower case.  If it can be done it will require some RegEx to do a global lowercase translation.

I've banged my head against this one for too long so bit the bullet and manually searched and replaced every class name.

If you, or anyone, can see a solution I'd still be interested for future reference.