Fix regex for prefix array.