Matches

Hello,

Can anyone help me on this please.

I’m trying to figure out how to extract only number 15 on this :

<sbs-test-2/sba>15

PS: it can change from 15 to 1500…

I have done this, but can’t find out how to remove everything before the number 15

(<sbs-test-2/sba>)(\d\d)

Thanks in advance!

1 Like

Hi @mz3bel

It has to be done through regex, but a quick work around is split this string by > it will give you an array then second element of array will be your number

Thanks,
Prankur

Yes, i know i’m stuck with the regex problem.

I tried, but can’t convert IEnumerable to String

1 Like

No problem do you have a sample workflow? Also, you can try string.join() to get string from IEnumerable

No, i don’t have a sample workflow, i get the text from get text activity than i use matches to get the expression i posted.

I ll look for string.join() to see if it works for me

Thank you!

1 Like

Hi @mz3bel,

It’s been a while :slight_smile:
Please check this sample workflow: BlankProcess51.zip (11.9 KB)

Hope this helps.
Thanks and regards,
Despi

4 Likes

Hi @Jan_Brian_Despi

Yes, i was on vacation for a while :smiley:

Thanks this resolved my problem :+1:t3:

1 Like

Okay.
Feel free to approach me anytime! :slight_smile:

2 Likes

For sure :smiley:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.