Fix regex to more perlish ones