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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -