For a dotnet application, I have a string pattern as shown below:
TEAM AND CO TEAM
TESTER
Name anderson rahul alice
and I need to only capture the value of "Name", but the value of name will be captured only when the string sequence will be "TEAM AND CO TEAM" is in one line and "TESTER" in next line and "Name" appearing on the next to next line.
Below is my regex but it is also selecting the second occurance of the Name, which I do not require :
\bName\s+(.*)$
input string :
TEAM AND CO TEAM
TESTER
Name anderson rahul alice
LTest SYNC DIM TESTER
PHYSICS
Name KIM SID andy
any help would be appreciable.
