I'm a total newb in regular expressions.
Let's say I add a message in my database and I add this: [userid]5[/userid] in the message.
How can I get the number between [userid] and [/userid] ?
-- How can I replace [userid]5[/userid] with some informations? Let's say, when the user read this message, I need to get the number between them, query the database for members informations and replace [userid]5[/userid] with <a href="userinfo.php?id=5>User with id 5</a>
Let's say I add a message in my database and I add this: [userid]5[/userid] in the message.
How can I get the number between [userid] and [/userid] ?
-- How can I replace [userid]5[/userid] with some informations? Let's say, when the user read this message, I need to get the number between them, query the database for members informations and replace [userid]5[/userid] with <a href="userinfo.php?id=5>User with id 5</a>