Adding the conversion code for the missing cases of regular expressions.