added clear-attribute, added 0 to length-pattern