java - Exclude a portion of a string with regex -
java - Exclude a portion of a string with regex -
i have string below:
identification of product - azec
how can create regex exclude identification of product - , homecoming string comes next, in case, azec
string str = "identification of product - azec"; system.out.println(str.split(" - ")[1]); // azec
java regex
Comments
Post a Comment