I need a regular expression to match a string that is not a string of numbers. Given my limited knowledge about regexes, I assume that .*
means any number of characters that matches the following reg expressions.
Therefore, I thought this would work:
.*[\\D]
But unfortunately it didn't. Instead this works:
.*[\\D].*
Can anyone explain to me or at least point to me where i can understand this? The java website and most website that I found is not simple enough.