human
How do I use a regular expression to match a name?
assistant
Here is some code to match regex '[a-zA-Z][\\w-]*\\Z' on string 'A\n'

re.match('[a-zA-Z][\\w-]*\\Z', 'A\n')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.