ereg_replace to preg_replace ?

Posted by sml on Stack Overflow See other posts from Stack Overflow or by sml
Published on 2010-03-14T21:44:17Z Indexed on 2010/03/14 21:45 UTC
Read the original article Hit count: 183

Filed under:
|
|

How can I convert

ereg_replace(".*\.(.*)$","\\1",$imgfile);

to

preg_replace... ?

?

I'm having trouble with it?

© Stack Overflow or respective owner

Related posts about ereg

Related posts about preg-replace