Fix regex parsing problem