Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
package org.drools.guvnor.client.packages;
public class PackageNameValidator {
    public static boolean validatePackageName(String name) {
    	if (name == nullreturn false;
    	return name.matches("^[a-zA-Z_\\$][\\w\\$]*(?:\\.[a-zA-Z_\\$][\\w\\$]*)*$");
    }
}
New to GrepCode? Check out our FAQ X