preg_replace Pattern
- by codeworxx
Hey Guys,
i'm not very firm with preg_replace - in other Words i do not really understand - so i hope you can help me.
I have a string in a Text like this one: [demo category=1] and want to replace with the Content of Category (id=1) e.g. "This is the Content of my first Category"
This is my startpoint Pattern - that's all i have:
'/[demo\s*.*?]/i';
Hope you can help?
Thanks,
Sascha