I am trying to match string using java regex, but my match is failing. What may be the issue in code below?
String line = "Copy of 001";
boolean b = Pattern.matches("001", line);
System.out.println("value is : "+b);
Output value is
value is : false