
August 1st, 2011, 10:22 AM
|
 |
cave painting, the 1st Opn Src
|
|
Join Date: Jun 2003
Posts: 532
Time spent in forums: 1 Day 16 h 3 m 34 sec
Reputation Power: 0
|
|
|
Collapse 2 str_repace stmts with wildcard
Code:
$fileData1 = str_replace("<FONT face='Arial' size='3'>", "", $fileData1);
$fileData1 = str_replace("<FONT face='Courier' size='3'>", "", $fileData1);
I'm not getting the wildcard syntax to collapse these 2 stmts into 1:
Code:
$fileData1 = str_replace("<FONT face='[^'*] size='\d+'>", "", $fileData1);
__________________
Curious by Nature,
Linux by Choice
Lawson ERP reference tools: Lawsuss.com
|