preg_replace Pattern
        Posted  
        
            by codeworxx
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by codeworxx
        
        
        
        Published on 2010-03-22T10:15:50Z
        Indexed on 
            2010/03/22
            10:31 UTC
        
        
        Read the original article
        Hit count: 372
        
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
© Stack Overflow or respective owner