Recognize links and emails conflict !?

hello Bubblers,

I have a question and a bug ! I use “Recognize links and emails” to detect links in my content. And I also use the " :find & replace" to display the clickable @user using the “Regex pattern” : @(\w+) and “Replace by”: [ url=https://twitter.com/$1 ][color=#00ffff]@$1[/color][ /url ].

Except I have a problem as the “Recognize links and emails” and activated the [ url=https://twitter.com/$1 ][color=#00ffff]@$1[/color][ /url ] doesn’t work because it shows the clickable link and not the @user. If I disable the “Recognize links and emails” the @user works but the detection of links in the content does not work anymore.

Do you know a solution ?
Thanks

Hey there @afouquet31,

Your functionality should work if you don’t check “Recognize Links and Emails” since the BB code you have setup already recognizes it as one. The “Recognize Links and Emails aren’t to be used with BB code per: Visual Elements - Bubble Docs

Okay @johnny !! So how do you go about auto-detecting links in content ?

I believe instead of doing [url=https://website.com]https://website.com[/url], you can just do https://website.com.

No, the text is provided by an API. I can’t change it that’s why I use “Recognize links and emails” auto-detection.

This topic was automatically closed after 70 days. New replies are no longer allowed.