Regular Expression examples by Zathras |
|
|
|
Views: 1552
|
|
Posted: 03 Feb, 2007
by: Simpson C.
Updated: 03 Feb, 2007
by: Simpson C.
|
|
Common Pre-defined Expression Characters/Meta Characters:
| \d |
any digit from 0 thru 9 |
| \D |
any alpha character (including "_") |
| [a-z] |
any alpha character from a thru z |
| [0-9] |
and digit from 0 thru 9 |
| {x} |
repeat previous expression x number of times (x = a number) |
| ^ |
look from the the beginning of the name |
| $ |
look at the end of the name |
| . |
any alpha-numeric character |
| + |
repeat last expression |
\d is equivalent to [0-9]. The latter is useful if you want to limit the range. Example [3-6] (3 thru 6)
Following syntax rules, the above list of characters can be combined in various ways to form "regular expressions". These expressions are used to describe a pattern of text -- in this case, bot names.
More info can be found here: http://en.wikipedia.org/wiki/Regular_expressions
And here (from Chet): http://www.regular-expressions.info/
To Use Regular Expressions:
- Open up the Super Iggy bin
in Y!TunnelPro.
- Click the "Add" button.
- Type in or cut/paste the regular expression into the blank field at the top of the window.
- Set "Search Type" to "Use regular expression pattern matching".
- Click "OK".
Example Regular Expressions: (Updated 02/02/07)
Below are some examples of regular expressions and the basic syntax. Most of the bot names are real and the expressions will work. I'll try to update this list an on-going basis.
The "..." means there were some miscellaneous characters in the bot name that I left out.
The red colored text is the bot name.
The blue colored text is the regular expression and what should be typed in, or cut/paste.
| aa1... |
|
^aa1 or ^aa\d+ (The latter will block any name beginning with aa followed by any number) |
| flower8gurl68 |
|
flower\d+gurl\d+ |
| amanda_807_tall |
|
_\d{3}_tall |
| |
|
|
| amanda_hottie_906 |
|
hottie_\d{3} or hottie |
| always_tania_269 |
|
always_[a-z]+_\d{3} |
| naughty_eireen_328 |
|
naughty_[a-z]+_\d{3} or ^naughty_ |
| jolly_samanta_27 |
|
jolly_[a-z]+_\d+ or ^jolly_ |
| |
|
|
| ana_girl_for_you |
|
_girl_for_you$ |
| |
|
|
| a_lucious_grl0435 |
|
a_[a-z]+_grl\d or ^a_lucious |
| sonya_69_cam1137 |
|
_cam\d+$ or _69_ |
| |
|
|
| jennifer607_xum |
|
jennifer\d{3}_[a-z]{3} |
| mindy724_yie |
|
mindy\d{3}_[a-z]{3} |
| aurora753_joy |
|
aurora\d{3}_[a-z]{3} |
| kimberlyphgg_419 |
|
kimberly[a-z]{4}_\d{3} |
| kylieo30755_wft |
|
kylie[a-z]\d+_[a-z]{3} |
| |
|
|
| biancadpb236 |
|
bianca[a-z]{3}\d{3} |
| cassandralq384d |
|
cassandra[a-z]{2}\d{3}[a-z] |
| |
|
|
| a_23bad_pandora |
|
a_\d{2}bad_ or ^a_\d{2} |
| a_28hot_women |
|
a_\d{2}hot_ or ^a_\d{2} or hot_women |
| a_22girl_... |
|
a_\d{2}girl_ or ^a_\d{2} |
| |
|
|
| pretttttybabe18 |
|
prettt |
| |
|
|
| amanda.vegas |
|
[.] (This will block any name with a period in it) |
| curvy.grl_xox_vs |
|
[a-z]+[.][a-z]+_[a-z]+_ or [a-z]+[.][a-z]+ or [.] |
| |
|
|
| raslazjsandyez |
|
[a-z]+z[a-z]+z$ (May block some real users also) |
| |
|
|
| john_ghjfgkjfg |
|
_[^aeiou0-9_]{6} or john_[^aeiou0-9_]{6} (Likely to block some real users also) |
| pink_r1mzd5ge7izb |
|
^pink_ (May block some real users also) |
| |
|
|
| m3o4q9l2y2gs |
|
[a-z]\d[a-z]\d[a-z]\d |
| ec47hj7qb2ch6lj1 |
|
[a-z]{2}\d{2}[a-z]{2}\d{1}[a-z]{2} |
| aj86ivv75op |
|
[a-z]{2}\d{2}[a-z]{3}\d{2} |
| yv87ok39 |
|
[a-z]{2}\d{2}[a-z]{2}\d{2} |
|