Update regexp patternNew to allow dot in package name