Why doesn't IsValid() work for me?

I’m trying to check form input and allow any alphanumeric character (uppercase and lowercase letters, and numbers). I’m using this:

#isvalid("regex",FORM.text,"[a-zA-Z0-9]")#

But when I type something like “Test” or “Testing123” it fails the test. In fact, anything fails.

Is my regex wrong?

Ok, seems like it needs a + at the end. This seems to work:

#isvalid("regex",FORM.text,"[a-zA-Z0-9]+")#

I hate regexes! :injured: