No result returned for regex lookahead

This expression (regex101: build, test, and debug regex) doesn’t appear to work when using the ‘extract with regex’ workflow in bubble - am I missing something?

Example workflow below.

  1. Workspace:

2.’ Extract with regex’ button workflow:

Really scratching my head here, any ideas welcome!

use" find&replace "

and check " use a regex pattern"

Hmm like this did you mean? (image below)

No joy, appears to have just extracted all of the text (image below)

Thoughts?

What would like to extract ? The number and s ?

Ideal behaviour is that the end user can highlight a phrase / text string in the transcript and click a call to action to save that text. A function would then run in the background to capture the seconds (numbers) of that paragraph.

For example (see image below), if the user has highlighted the text string ‘really unfortunate.’ — I’d like to trigger an itemised extraction of the numbers ‘7’ & ‘12’, respectively.

If that makes sense?

I see.
Try this -
((\d+)s\s±\s+(\d+)s\s+)(.+really unfortunate.)

Hmm still no luck, here’s what I tried:

After running the workflow the ‘reg-extract’ was just empty (see blow) :thinking:

Any ideas @fel.tj ?

Use the “Extract with Regex”.

Yeah still no result there, just empty



Try to check again.

ss1

Awesome I’ve got that to work @fel.tj - code ended up being this:
((\d+)s\s±\s+(\d+)s\s+)(.+DYNAMIC-PHRASE.)

Just need to extract each numbers now, but I can probably handle that.

Thank you for the support!

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