I have my regex like this:
def m = /(.+)webservice.*/.matcher(x);if ( m.matches()) {return m.group(1);
The problem is it just match when my string have no "\n" like :
"mbccs_getStatusIncorrectProfile webservice does not exist"
and fail:
"mbccs_getStatusIncorrectProfile webservice does not exist\n"
How can I catch in second case? And even with other characters like "\r" ...Thanks.