I need a regex pattern to validate that a field contains at least 1 alpha and 1 number, in any order/combo of alphas & numerics.
Here is the pattern I came up with:
([a-zA-Z]){1,}([0-9]){1,}|([0-9]){1,}([a-zA-Z]){1,}
Is there a better way or is that it?
I'm new to regular expressions and this seems to work, but would feel better with some input from you regex gurus out there. Thanks