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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -