Q:

Regex in python

I'm trying to use regular expression right now and I'm really confuse. I want to make some validation with this regular expression : 
^[A-Za-z0-9_.][A-Za-z0-9_ ]*

I want to make it so there is a limit of character (32) and I want to "match" all the string.
ex:
string : ".hello hello"
-this should work
string : ".hello hello /.."
-This should be rejected because of the /..
Thanks!

A:

this?
^[A-Za-z0-9_.][A-Za-z0-9_ ]{0,31}$

