MyBB Community Forums

Full Version: [MyCode] UID
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Simple MyCode Go too UID:

Regular Expression:

\[uid\](.*?)\[/uid\]

Replacement:

<a href="http://justinbytes.com/member.php?action=profile&uid=$1">Click to go too UID: $1</a>
You do really not want to allow any kind of input (the .*?) as then a user could simply [uid]" style="background: red" [/uid] (and worse)

As uids are just integers just use \d which accepts 0-9

As,

\[uid\](\d+)\[/uid\]