functions-online

preg_replace

description

Searches $subject for matches to $pattern and replaces them with $replacement.

declaration of preg_replace

mixed preg_replace ( mixed $pattern , mixed $replacement , mixed $subject [, int $limit ] [, int &$count ] )

test preg_replace online













comments for preg_replace

On 10. Oct 2013 10:10 Webmaster wrote:

Very clean and clear website and no advertisement, nice! And thanks for supporting HTML in expressions, well done!

On 05. Apr 2012 16:35 benjamin wrote:

hi, i have a escaped \ in my pattern: /(?

On 06. Jul 2010 11:35 niconoe wrote:

Ok, I thought like $limit was optional, you set it to -1 if NULL is post :) Happy to see that's fix for now, thanks for your great website!

more comments for preg_replace

There are some more comments for preg_replace(). To see them all click here.

+

Leave your comment