i have a package structure that I want to match on.
it can be any letters and dots, but I want to filter on the last letters to only be .war or .jar.
examples that pass:
com.foo.bar.war
com.foo.jar
com.foo.war.war
examples that do not pass:
com.foo.bar.ear
com.foo.jar.me
com.foo.war.xyz
You can try this regexp
\.(w|j)ar$