I have a string like this
String xyz ="JAVAxxxxxxxxxxxxxx ID: 123678 VERSION: 3"
and I want to know how I can verify that it conforms to aspecific pattern.
I do the assertion like this
assertThat(xyz).containsPattern("[A-Za-z]* ID: [0-9]* VERSION: [0-9]* ");