Forum Documentation Showcase Pricing Learn more

@Mentions are almost possible

#1

Using find & replace on a string with a regex pattern @([A-Za-z0-9_]+) allows you to find a @mention in a sentence.

It would be awesome to add the ability to extract a word within a string

:extract only allows the user to extract an email. If you added the ability to extract text from a string, with a regex pattern then it would be possible to trigger a workflow when a username is mentioned, (although mentions themselves wouldn’t be clickable).

5 Likes

#2

I also think that this would be a great addition and probably an easy one for the bubble team.

@josh

Could you add the ability to use the :extract feature to extract things from a string using regex?

0 Likes

#3

We could look into adding this. Which Regex would you use that with?

0 Likes

#4

I’d like to get mentions from a text, using a regex like this /@\S+/ should return just that.

I actually ended up using another solution found on the forum which uses webtask and the API connector to accomplish just that but for the future it’d be useful to simply :extract things from text using regex.

0 Likes

#5

And it would return a list of texts?

0 Likes

#6

Yes.

“This is an @example for @bubble forum”

would return a list of text: “@example”, “@bubble”;

0 Likes

#7

We’ll see what we can do.

3 Likes

#8

We just pushed that.

12 Likes

Bubble Chatbot: Possible to extract data from text?
#9

Excellent. How can I use it?

0 Likes

#10

Same, any more info on how to make this work?

0 Likes

#11

3 Likes

#12

We just published a plugin to do this :smiley:

2 Likes

#13

@NigelG
Hi. I am trying to implement this but cannot…

I created everything that you mentioned in the picture above.
I have a multiline input A and I have a repeating group text. I’m assuming this repeating group text is going to display the names of the user I mention in the multiline input A.
How do i make this happen?
does this eventually work out as how bubble has in their forums, that everytime we type @, a list appears with selection capability. Im assuming the list that pop’s up in bubble is the repeatinggroup text you have up there. Do I have to put in image elements inside the repeating group?
Thanks

0 Likes

#14

I would use the Tagger plugin, it works very well.

https://buildingonbubble.com/block/tagger-plugin-for-mentions-1515412723033x963917052088942600

1 Like

#15

Thank you. Finally!!

0 Likes