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
Post a Comment