Query regarding regular expression
hi I have a string like this:
String s = "@Path(\"/BankDBRestService/customerExist(String")\";
I want to make that string as
@Path("/BankDBRestService/customerExist")
I tried this:
String foo = s.replaceAll("[(](.*)", "");
i am getting output as
@Path
can anyone please provide me the reqular expression to make this work
No comments:
Post a Comment