this is great. improvement for your regex: /^attr-.+/