Add Pattern From Selection In Html