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:
"[az,AZ,0-9,\\\\.]*/[az,AZ,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!
试试这个:
\\\\b[a-zA-Z0-9.]+[/][a-zA-Z0-9.]+\\\\b
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.