Hi,
I’m trying to get the text in a string from the first number in that string.
For example:
asdasdas 12
aerggsf 12-A
powejkasd 124 B
Can anyone tell me how I can extract text (12, 12-A, 124 B) from the strings?
Thanks!
Hi,
I’m trying to get the text in a string from the first number in that string.
For example:
asdasdas 12
aerggsf 12-A
powejkasd 124 B
Can anyone tell me how I can extract text (12, 12-A, 124 B) from the strings?
Thanks!
hey @JanWillem
Hope you are doing well
You can use Matches activity for this and pass this patter \d.+
Cheers
@JanWillem
Hi @JanWillem,
try this
Split(your string,” “)(1).ToString
Cheers,
Timo
Use following regex pattern in Matches activity
\d(.*)$
above pattern will fail to identify “aerggsf 1”
Correct regex will be: \d(.*)
Thanks! This works for me.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.