How to get the Pattern Using Regex

Hi Everyone,
From the below regex file i need to get data in enumerable like with exact spacing as in regex notepad file

abc4234

abc1434

abc1244

regex.txt (81 Bytes)

Hi,

How about the following?

Sample20210212-2.zip (2.4 KB)

Regards,

Hi @Yoichi,

We need to have Exact spacing as in regex file.

Hi,

Can you try the following expression?

String.Join("",System.Text.RegularExpressions.Regex.Matches(data,"(\r?\n|abc\d{4})").Cast(Of Match).Select(Function(x) x.Value)).Trim

Regards,

Thanks @Yoichi It worked :smiley:

1 Like

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