Need to extract only specific value

Hi everyone,

I have string sentence as below need to extract only few values

  1. R059 xx, vv
  2. Z20818 vv vv
  3. X1234 bb bb

I need a output as

R059;z20818; x1234

Please give me suggestion

Thanks

Hi @vaishali

Follow the same xaml from the below thread

Just change the Input in Assign activity and RegularExpressions in Find Matching Patterns activity as below:

Input = "R059 xx, vv
Z20818 vv vv
X1234 bb bb"

Pattern in Find Matching Patterns:
[A-Z0-9]+

Regards

@vaishali

You can try this in assign

StringArrayVariable = System.Text.Regularaexpressions.Regex.Matches(stringvariable,β€œ[A-Za-z]\d+”).Cast(Of System.Text.Regularaexpressions.Regex.Match).Select(function(x) x.Value).ToArray`

Cheers

I tried to change the pattern it not working its extracting each and every word
Is there any other solution

I have tried this but am getting an error as below

Hi @vaishali

Can you share the screenshot once.

And can you try this regex once:
[A-Z0-9]+(?=\s+[a-z]+)

Regards

@vaishali

Can you opens imports panel and import those names spaces pelase

Cheers

I have tried this code in find matching pattern β€œ[A-Za-z]\d+”) its working thanks

1 Like

Thanks for your input…

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