Human: How do I use a regular expression to match a name? Assistant: 
Here is some code to match regex '[a-zA-Z][\\w-]*$' on string '!A_B'

re.match('[a-zA-Z][\\w-]*$', '!A_B')

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