MyBB Community Forums

Full Version: MyCode regular expression isn't working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried to create a #hashtag MyCode that links to Twitter. It's an easy regex. I tested it here and it works fine. I don't know why it doesn't work.

[Image: fcb3e0d31e.png]

Can someone help me please?
It worked, thanks!

Edit:
It's just what I wanted but now I realized that there is a conflict when you use [COLOR], [QUOTE] because in the html there are some texts like #pid, #FFFFFF, etc... how can I tell the MyCode to only affect the shown text?

Here is a live example:
[Image: 9pvVAUz.png]

"#DemasiadoTarde" it's ok but "#pid58466" and "#1E90FF" are clearly not.
Not exactly as I expected... MyCode also affects HTML

This shouldn't match, could you fix it?
https://www.regex101.com/r/gY2jI7/4