Modifier: is_alphanumeric

Returns true if string contains only alphanumeric characters. Punctuation, whitespace, and another other special characters will cause a false.

secret_phrase: abc123
even_more_secret_phrase: abc123!@#
{{ if secret_phrase | is_alphanumeric }}
{{ if even_more_secret_phrase | is_alphanumeric }}

Additional Reading

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

Last modified on March 31, 2016