Split string two formats

Hi everyone I have two string with different formats

Like

59% J (Contains FF) book D.

Sometimes iam getting 59% J book D

Can I know how to sit the string and get the value as

1.59%
2.J
3.D

Can anyone Help me.

Thanks
Srikanth

1 Like

try to split with space and then take 0 th postion for 59 % and 1st position for to get the J and for D took at last position.

yah thats possible
for 59%
str_output1 = split(str_input," ")(0).ToStringg

for J
str_output1 = split(str_input," ")(1).ToStringg

for D
str_output1 = split(str_input," ").Last.ToString

Cheers @Srikanth_prem

@Srikanth_prem,

Check this regex to split the required values from multiple strings.

\d+(?:%)|\s[A-Z]\s|(?<=book\s)[A-Z]