Thanks [mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]! The above code, as its own expression rule, has helped me out in various different Appian projects since I originally wrote it, especially those where we didn't (yet) have the RegEx plug-in. For what it's worth, since then I've swapped it out with the actual RegEx functionality as it's able to handle a little bit more. [mention:80250d04270e449fb1b32cc9aa5c1ef4:e9ed411860ed4f2ba0265705b8793d05] is there a reason you can't use the RegEx plug-in?
Here's the current code (still in an expression rule i.e. `UTIL_isValidEmailAddress()`) --
regexmatch(
pattern: "^[A-Z0-9\_-]+(\.{0,1}[A-Z0-9\+_-]+)*[@]{1}[A-Z0-9.-]*[A-Z0-9-]+[.]{1}[A-Z]{2,6}$",
searchString: ri!email,
regexFlags: "si"
)