Toby's simplified syntax works fine as: pos = prxmatch('/^[a-z_]\w{0,31}$/i', trim(varname)); Fmi, any way to remove the trim() and have the regexp handle the trimmimg? Should we? Also why/when use PrxParse at all if PrxMatch accepts strings as the first parameter?