Note: replace the "." with "\." if you paste this on your java.
The regex will match if the package name is valid. example: my.new.hello.world.app
my.new.hello.world.app
Supports: a-z 0-9 and underscore Supports multiple dots