I am using following regular expression code but which is allowing alphabets,numbers as well as alphanumeric. But In my case my text field should allow only alphanumeric not only alphabets and only numbers.

```
^([a-zA-Z0-9])$

```

Thanks in advance