What is the regex to strip the MY-CORP\ part of na inputed string like MY-CORP\My.Name with the java String.replaceAll
method so I can get only the My.Name part?
I tried
public static String stripDomain(String userWithDomain) {
return userWithDomain.replaceAll("^.*\\", "");
}
but i got Unexpected internal error near index 4 ^.*