In short: I'd like to match any "word" (contiguous set of characters separated by whitespace) containing 1 letter and at least 1 of (numbers/certain special characters). These "words" can appear anywhere in a sentence.
Trying this in python
using re
So far, as a pattern, I have:
w*[d@]w*
Which works, for the most part; however, I don't want to have "words" that are only numbers/special. Ex:
Should match:
h1DF346
123FE453
3f3g6hj7j5v3
hasdf@asdf
r3
r@
Should not match:
555555
@
hello
onlyletters
Having trouble excluding the first two under "should not match". Feel like there's something simple I'm missing here. Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…