implement Regex

Added support for Regular Expressions. (Also added check in the primitive creation function because regex's created with the literal syntax (/foo/) comes through as a literal expression.)