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: [email protected]#
{{ if secret_phrase | is_alphanumeric }}
{{ if even_more_secret_phrase | is_alphanumeric }}
true
false
Betterify this page on Github!