I have a few files:
java-opentimelineio-0.14.0-beta-1-sources.jar
java-opentimelineio-0.14.0-beta-1.jar
java-opentimelineio-0.14.0.jar
I'm trying to use regex to match the file names like this:
find . -type f -name "[[:alnum:]]*[.][0-9]*(-beta-)?[0-9]*.jar"
I want the regex to match only these:
java-opentimelineio-0.14.0-beta-1.jar
java-opentimelineio-0.14.0.jar
But I'm getting no matches. From what I understand, a *
after any character will match zero or more occurrences of that character and a ?
will match zero or one occurrence of that character. Where am I going wrong?