Regex: How to match a string that is not only numbers

(?!^\d+$)^.+$

This says lookahead for lines that do not contain all digits and match the entire line.

Leave a Comment