Split string #21

Hii,
How to split string #21

Thanks and Regards,
Supriya

1 Like

Hi @supu123

Please try this one in Assign activity:
Regex.Replace("#21", "[^\d]", "")

Thanks and regards,
Despi

1 Like

There is also an activity called Replace.
You can also use that :slight_smile:

2 Likes

Hii @Jan_Brian_Despi
How to use in replace

What should be in input
And what should be in output

1 Like

Input: β€œ#21”
Replacement: β€œβ€
Pattern: β€œ[^\d]”
Output: a string variable

1 Like

Hii @Jan_Brian_Despi
I got the output
Can u explain what is happening here

Thanks and Regards,
Supriya

1 Like

It uses Regex. So what it does is it gets what matches in the regex.
You can view the regex cheatsheet here:

Thanks :slight_smile:
You may now mark my answer as the solution.
Regards,
Despi

2 Likes

Hii @Jan_Brian_Despi

What is matching
Can u please explain I m actually not getting

Thankyou so much

1 Like

You can view the documentation here:

I can’t explain it that much. :sweat_smile::sweat_smile:

2 Likes

You can also check how Regex works here:

2 Likes

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