I’m busy understanding how Regular Expressions work, simply via trial and error.
Funny thing is that I dont have anyone around me who can teach me this stuff, who is not busy…
So here is what I have learnt (taken directly out of my comments) in the past 30 minutes of getting real angry at spam that the filters dont block :
- /can you do (this|that)/i -matches, ‘can you do this’ or ‘can you do that’ (case-INsenSitivE)
- [[:alnum:]]{4,} -matches 4 or more letters or numbers, upper or lower -case
- \D{3} -matches any three characters
- something between [ and ] like [a4] will match either same or s4me
- the ‘in?c’ matches either ‘ic’ or ‘inc’
- the \b stipulates the word boundary between word (\w) and non-word (\W) characters
- the [[:punct:]]{1} matches any ONE punctuation character
- the /D is a non-digit and a \d is a digit, so /D{2}\d{3} matches ab727
Can you tell me what this does??
/^Download Prevxx? S[4a]?f[3e]?[0o]nl[1i]?n[3e]?/i
