Filtering data between () in sentence

Hi all,

I’m trying to figure out on how to only use the words within the ()'s of a sentence.

F.E.
My RSS title output:
“Your time has been increased (+2 days, 23 hours).”

Let’s say now I want to post a tweet and only use the BOLD part of my RSS title.

Is there a way to filter out and only use the text between the ()'s?

Greetings,

Steve

Hi. You can use the function replace to remove any part of the string as the exemple below:
{{replace(“+2 days, 23 hours”; “+”; emptystring)}}

If you need additional support, please don’t hesitate to reach out.

Cheers
//HFBR

1 Like

Hi, thanks for your fast reply.

I’m not sure if that’s the solution I’m looking for.

My input is a RSS title and I want to only the text between the ()'s to appear.

1. Title: “Your time has been increased (+2 days, 23 hours ).”

So only the bold part.

2022-12-16 17_01_19-NVIDIA GeForce Overlay DT

Sorry I’m a huge noob at this.

Hi @Steve_Wiegman

Please find the answer below:

MSquare Support
Visit us here
Youtube Channel

1 Like

yeah that won’t work either, because he has a string where these brackets exist.

@Steve_Wiegman You can use RegEx to extract data based on a pattern. In this case, you know the pattern since it will always be between ( ). You can read about RegEx here to get started.

In this case, you can use the “Text Parser” → “Match Pattern” module with the following regex to extract data:

(?<=\().+(?=\))

If you have any more questions let us know.

1 Like