Regex constraint to validate alphanumeric

Sorry, my response was wrt ODK1. But I now assume you are in fact using ODK2?

For ODK2, see Problem in Implementation of Regular Expression: ODK2.0 - #2 by elmps2018 for a way to perform regex tests.