Java Regex not recognizing the string

java, regex

Solution

Try this:

`\\b[a-zA-Z0-9.]+[/][a-zA-Z0-9.]+\\b`

Problem

I am trying to find if a string fits the format `"name"/"version"`. Here is an example of what I expect to have. `VideoPart/1.2` I've tried many regexes. The closest I have come is this: `"[a-z,A-Z,0-9,\\.]*/[a-z,A-Z,0-9,\\.]"` but it doesn't recognize the format. I am being specific in this regex because I don't want anything more than just one forward-slash. Thanks!

Original source