I’m new here. i got a problem whenever i want to get text from this string . I only want the name word instead the salutation use at the front. The things is, the selector get text only allowed me to get the whole name and salutation . and the salutation keep on changing. If im using Remove(,).toString i can only remove certain Salutation that has length that already set to remove. Kindly help me to give solution for this.
MR TEST ABC
MADAM TEST DEF
DR IR TEST GHIJKLM
** MR, MADAM DR IR , is few example the salutation that i need to remove. How can to get the Name at the back only
your solution is working. Actually i forgot to include with ": " here since it comes with the salutation there. so i just update it like here System.Text.RegularExpressions.Regex.Replace(strCustNm, “^(: MR|: MADAM|: DR)”, “”)