Help in regular expression

Hi All,

I have sentence as below i need extract only particular value.

Eg. 1.D61221b vv bbb cc
2. X58xxxa mm mm

If i give [A-Za-z]\d+
I am getting only D61221 & X58 i am not getting full value

Please help thanks

Hi @vaish

Try this

[A-Z].*

Regards,

Sorry my mistake i didn’t mention properly
I need a output as D61221b and X58xxxa alone.

Thanks

Hi @vaish

([A-Z])\w+

Regards

HI,

How about the following pattern?

[A-Za-z]\d\w*

image

Regards,

1 Like

@vaish

Can you try the below

Input.Split(" ")(0)

1 Like

Hi @vaish

Check the below flow:

Assign activity:

Input = "D61221b vv bbb cc
X58xxxa mm mm"

Find Matching Patterns:

Pattern: "([A-Z])\w+"
Pattern Options: Compiled
Text to Search in: Input
Result: Matches

=> Use For Each loop

For Each currentMatch in Matches
   WriteLine -> currentMatch.ToString
End For Each


Sequence22.xaml (8.2 KB)

Output:
image

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