I'm trying to convert some html to transitional.
Can't use Tidy, as these are includes and some table closing tags are in other 
pages (they aren't mine).

example:
<  H1 ALIGN  =  CENTER> Title</h1>
<P   ALIGN=LEFT  >Some text here</p>

$pattern = '/< *([a-zA-Z1-6]+) *([a-zA-Z]*) *= *([a-zA-Z]*) *>/';
$replace = '<\1 \2="\3">';
$content = preg_replace($pattern, $replace, $content);

regex is just a lashup and I'll change that later.

How can I put strtolower(); in to make just the tags into lowercase.

TIA




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12htgur5e/M=362329.6886308.7839368.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1122705327/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to