I need to extract \"URPlus1_S2_3\" from the string:
\"URPlus1_S2_3\"
\"Last one: http://abc.imp/Basic2#URPlus1_S2_3,\"
using regular expressi
String s = "Last one: http://abc.imp/Basic2#URPlus1_S2_3,"; Matcher m = Pattern.compile("(URPlus1_S2_3)").matcher(s); if (m.find()) System.out.println(m.group(1));
You gotta learn how to specify your requirements ;)