Split String to characters and Numbers

HI

I am trying to split the string in following way

image

It is appreciable if anyone help me out of this

Thank you

did you tried regex patterns?

if not please go through this workflow…

RegexToSplit.xaml (6.5 KB)

regards,
pathrudu

5 Likes

Hi, Krishna

Try this. RegexSplitAlphanumeric.zip (2.2 KB)

I’ve added the regex that should be used and the output seems to match your requirements.

Regards,
SG

Hi pathrudu, I am new to Uipath. Could you please suggest a reference to learn and understand Regex. Thanks in advance !!!

Hello,

You can read regex from below link,

Cheers,
Pankaj

1 Like

Hope this book may help you…

Regular-Expressions.pdf (920.0 KB)

3 Likes

Thank U siddharth for responding fast and understanding the problem

Hi pathrudu Your code is working fine and gives 100% result in all test cases.
Thank you for fast response

I saw Pathrudu’s workflow. He’s done the same thing. However, I’d like to add one thing for anyone downloading his or my workflow. Do note that Pathrudu’s “Matches” activity ignores cases using the “RegexOption” property. If the case isn’t ignored, you have to make necessary changes to your regex. I’ve already taken care of that just in case someone makes a change to the RegexOption property.

-SG

2 Likes

ThanQ @siddharth you saved my lot of time thaks a looot.

1 Like

Glad I could help. :slight_smile: