note 42768 added to function.preg-replace
| From: | dennis_hilhorstATzonnetDOTnl at rn2 dot php dot net | Date: | Fri, 28 May 2004 12:49:40 +0000 |
| Subject: | note 42768 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70240@lists.php.net to get a copy of this message | ||
I want the following sting
'<font face="courier new" color=#006600 size=6>Courier new</font> is not
equal to <font face=arial color=#006600 size=6>Arial</font>'
converted in
'<font face="courier new" color="#006600" size="6">Courier
new</font> is not equal to <font face="arial" color="#006600"
size="6">Arial</font>'
I want in this example the value of the face/color/size between 2 ""... I just don't
know what the right syntax is for this problem...
Who can help me???
<?
$input = '<font face="courier new" color=#006600 size=6>Courier
new</font> is niet gelijk aan <font face=arial color=#006600
size=6>Arial</font>';
$output = preg_replace(); // <- ! ! !
?>
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42768
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42768&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42768&report=yes
Search -- http://master.php.net/manage/user-notes.php