python - regex to strict check numbers in string -
example strings:
- i numeric string 75698
- i alphanumeric string a14-b32-c7d
so far regex works: (\s+)$
i want add way (probably ahead) check if result generated above regex contains digit (0-9) 1 or more times?
this not working: (\s+(?=\s*\d\s*))$
how should it?
Comments
Post a Comment