Change regexp from [^\0]* to [\s\S]* for better performance