regex error repaired