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.
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.
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
Please refer the below thread.
Using which activity we will get this string…we have to use marches activity?
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.