Jump to content

ereg_replace question -- replace a predefined number of characters?!


johnwayne77

Recommended Posts

i was wondering what this line does:

 

$src = ereg_replace('<font color="([^"]*)">', '<span style="color: \1">', ob_get_contents());

 

the dilema is on the <font color="([^"]*)">   part.

 

does that refers to replacing a predefined number of characters in the brackets?

 

i would appreciate an explanation on the entire syntx and more on the "^" and "*" options.

 

thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.