Updates to regular expression functionality