It seems that with that command, you may be using a basic regex (BRE) See grep --gelp. For your regex, you'll need at least extended regex (ERE). Thus you need the extra -E flag. Like this: -E --regexp== or concisely as Wiktor said.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
grep -E '^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$'
?grep --gelp
. For your regex, you'll need at least extended regex (ERE). Thus you need the extra-E
flag. Like this:-E --regexp==
or concisely as Wiktor said.