I try to extract the error number from strings like \"Wrong parameters - Error 1356\":
\"Wrong parameters - Error 1356\"
Pattern p = Pattern.compile(\"(\\\\d*)\"); Matcher m =
Simply:
\d* implies zero or more times
\d+ means one or more times