grep - Regex problem with recognizing alphanumericals -


i trying build regex filters alphanumerical strings. means "12ab" or "ab12" or "a12b". must not match single chars or numbers. attempt '[0-9a-za-z]+'. didn t work. me problem "the string starts character or number ..."

here examples.

to recognized: "aab2" "23ab" "a1" "a2acd"

not recognized: "a" "aads" "1" "232323" "." "+" "sas+"

greetings, haniball

^([a-za-z]+[0-9]+)|([0-9]+[a-za-z]+)[a-za-z0-9]*$ 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -