a <- c("it is ZZ10ASDJN123 and ZZ100DD22")
How can i remove the words starting with first 2 alphabets followed by starting 2 digit numbers and not remove any alphanumeric more than follows 2 + digit numbers.
Expected output:
"it is and ZZ100DD22"
This code removes the numbers alone. Please help in geting me the expected output.
gsub('[[:digit:]]+', '', a)