In reply to Chris (blog visitor).

I personally use the Strip Function.... that being said if you simply add a \s* to the end of your pattern it will specify 0 or more spaces... so regardless if one is there or not it will ensure a match....

pos = prxmatch('/^[a-z_]\w{0,31}\s*$/i', varname ) ;

The only down fall is it might add time onto your RegEx match.