I'm trying to stub a rest operation and I need a pattern to match a string and then any character after that unless its a "/".
eg. /getAccounts5424675
I need to match this but the numbers can be anything however it must not match if there is a "/" after the get accounts part. There are other operations such as /getAccounts5424675/products4344 that cannot match.
I don't see a not character in Java such as ^ other than in character classes like [^abc] however I don't believe I can use that combined with a string to match.