I want to write a regex that matches string that has both numeric and alphabets. ^[a-zA-Z0-9]*$ -- this pattern returns numeric as well as alphabets, but I want only alphanumeric. Basically I'm using postgresql to query rows that contain numericals in it.

~ '[[:alpha:]]'for Unicode codepoints.