Php preg_replace pattern help
Posted
by christian
on Stack Overflow
See other posts from Stack Overflow
or by christian
Published on 2010-04-28T08:00:42Z
Indexed on
2010/04/28
8:03 UTC
Read the original article
Hit count: 287
I have this text:
Lorem ipsum dolor sit
{something.something({print.print(param1,param2)},param2)},
consectetur adipiscing elit.
Where i need a pattern that can replace everything but: something.something
The text something.something can contain [a-zA-Z.]
(I am using preg_replace)
Here is a site where you can test the code: http://www.spaweditor.com/scripts/regex/index.php
© Stack Overflow or respective owner