Input- By: test test test (123). Somthing
Information: 123455 test test
Output - test test test (123). Somthing
“By:” is constant need to fetch statment after that till next new line
Input- By: test test test (123). Somthing
Information: 123455 test test
Output - test test test (123). Somthing
“By:” is constant need to fetch statment after that till next new line
Hi @Tate_S ,
Could you try using the below regex :
(?<=By:).*
Expression :
Regex.Match(yourStringVar,"(?<=By:).*").Value.Trim
Also, Make sure the namespace is imported :
HI @Tate_S
Checkout this expression
System.Text.RegularExpressions.Regex.Match(InputString,"(?<=By:\s).*").Tostring
Regards
Sudharsan
Hi @Tate_S ,
Check this below code,
reqValue(String type) = System.Text.RegularExpressions.Regex.Match(InputString,"(?<=By:)[0-9\sA-z()].+",System.Text.RegularExpressions.RegexOptions.Multiline).Value
Hope this may help you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.