fixed RegExp to allow for attribute names consisting of a sinlge character