Modifier: is_email


Returns true if a string is a valid email address.

an_email: lknope@inpra.org
not_an_email: waffles
{{ if an_email | is_email }}
{{ if not_an_email | is_email }}
true
false

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on May 31, 2018