Ok, so I'm not the best with Regex and I need some help! I'm looking for this pattern:
MEMBER NAME: DOE*JOHN
My thought was 3 sub-strings because all I really want is the name portion... this is what I have so far...
I decided first substring is MEMBER NAME: which is always the same, second substring is the name (Last*First) combination, and third would be a non-word character of some sort (space, number, bracket, etc.)
Note there could be multiple spaces between the colon and the beginning of the name. Can anyone help me figure out whats wrong with my syntax? Thanks!!!
MEMBER NAME: DOE*JOHN
My thought was 3 sub-strings because all I really want is the name portion... this is what I have so far...
Code:
searchValue = "(MEMBER\sNAME\:\s*)([A-Z]\*[A-Z])(\W)"
Note there could be multiple spaces between the colon and the beginning of the name. Can anyone help me figure out whats wrong with my syntax? Thanks!!!