I would like to have a regular expression that checks if a string contains only upper and lowercase letters, numbers, and underscores.
^\w*$ will work for below combinations
^\w*$
1 123 1av pRo av1