04-07-2008, 04:43 AM
|
#19 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Hey, how cna you do multple preg replaces in one string? Say like:
PHP Code:
$preg = "/(echo|print.*?)\"(.*?)\"/";
This is saying we want to rpelace echo or print with whatever else with $1|$2, and then the other one is saying we want ot make the encapsulated quotation marked strings ( lol ) to become grey
__________________
VillageIdiot can have my babbies ;d
|
|
|
|