Fix regex in repeat as