I’m looking for a regular expression for
(digit/digit), like (1/2)
Digit has to be 1-3 numbers. I use Java.
I think my problem is deeper than just regular expression. I can’t get this working
String s ="(1/15)";
Assert.isTrue(s.contains("\\d{1,3}/\\d{1,3}"));
The test fails, even thought it should contain the required text.
Try this
In java you have to do
to check for the match (watch out for the escape sequences)