Correcting regular expression