I am using regression expression to find the patterns such as:
"Today USER ID: 123556 cancelled"
"January USER ID: 236477 renewed"
"February USER ID: 645689 dispute"
Basically I am looking for the string contains "USER ID: " + number. I am using the following code, but it couldn't match anything. Could anyone please give some suggestions?
if (myString.matches("USER ID: ([0-9]+)")) {
println(a)
}