regexp and tooltip for attribute