The BIG thing to note here is that this module uses regexp NOT regex! They are different.

Here is a basic regular expression matching numbers, letters, dashes, and underscores ONLY.

^[A-Za-z0-9_-]+$

Nice module thanks.

Comments

nicholasthompson’s picture

Also - 6 uppercase alphanumeric characters

^[A-Z0-9]{6}$

This should be included in the docs as an example :)

Khetam’s picture

helpful, Thanks :)