How to take this string between this two string

Using regular expression I want to take this string
“ABCD
1223334 22.10.2024
EFGH/IJKL”

I want to take “1223334 22.10.2024” this value between this two strings.

Hi @Gopi_Krishna1

Try this

(\d+).*

image

Regards,

Actually this string is situated in big paragraph so you need to put logic that string between this two words “ABCD” and “EFGH/IJKL”. I hope you understand

@Gopi_Krishna1

(?<=ABCD\s).*?(?=\sEFGH\/IJKL)

Regards,

Hi @Gopi_Krishna1

Please refer the below thread.

Using which activity we will get this string…we have to use marches activity?

@Gopi_Krishna1

Input="ABCD
1223334 22.10.2024
EFGH/IJKL"
Output=System.Text.RegularExpressions.Regex.Match(Input,"(?<=ABCD\s).*?(?=\sEFGH\/IJKL)").Value

Cheers!!

const string pattern = @"(?<=ABCD\n).*(?=EFGH/IJKL)";
        var match = Regex.Match(text, pattern);
        return match.Success ? match.Groups[0].Value : "String not found";

@Gopi_Krishna1 this code solve your issue, pls test with multiple data

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