digininja / deleet

Take a word list and convert 1337 spellings back to normal
GNU General Public License v3.0
11 stars 3 forks source link

deleet

Take a word list and convert 1337 spellings back to normal

In an attempt to strip prefix and suffix, I'm looking for the first alpha character then taking alphas and numerics up till the last alpha in the string, this is the regex:

/^[^a-z]*([a-z0-9]*[a-z])[^a-z]*$/i

Some examples:

This means I might miss some words so will try to work on this to tune it a bit better.