I am trying to use ‘extract with regex’ to do a count of how many times some words appear in a multiline text input.
The expression I am using is along these lines:
\bTHING|\bITEM|\bFOO
That is exactly what I am entering it in to where it says ‘Regex pattern’ in Bubble. I’ve tried it just as it is and also surrounded by square brackets, i.e.
And then on the Appearance tab I am entering this:
MultilineInput A’s value: extract with regex:count
What I need is a count of how many times the words thing, item and foo have been used in the multiline input that has been referenced.
So,
The thing is that the foo item is just the thing that I need, or maybe another item might be okay.
would give the answer 5.
Problem is I am getting some kind of character count rather than a count of those three words. Where am I going wrong?