Detailed view of a page, which is probably more useful for debugging than anything else.
get_pagedata('RegularExpressions') | |
_cached_html | transformedtext Object ( [_type] => pagetype_wikitext Object ( ) [_basepage] => RegularExpressions [_content] => Array ( [0] => <div class="wikitext"><p class="tightenable top">If you've ever typed "cp *.html ../" at the UNIX command prompt, or entered "garden?" into a web-based search engine, you've already used a simple regular expression. Regular expressions ("regex's" for short) are sets of symbols and syntactic elements used to match patterns of text.</p> <p class="tightenable">Even these simple examples testify to the power of regular expressions. In the first instance, you've copied all the files which end in ".html" (as opposed to copying them one by one); in the second, you've conducted a search not only for "garden," but for "garden, gardening, gardens, and gardeners" all at once.</p> <p class="tightenable bottom">For a tool with full regex support, metacharacters like "*" and "?" (or "wildcard operators," as they are sometimes called) are only the tip of the iceberg. Using a good regex engine and a well-crafted regular expression, one can easily search through a text file (or a hundred text files) searching for words that have the suffix ".html" (but only if the word begins with a capital letter and occurs at the beginning of the line), replace the .html suffix with a .sgml suffix, and then change all the lower case characters to upper case. With the right tools, this series of regular expressions would do just that:</p> <pre class="tightenable top bottom"> s/(^[A_Z]{1})([a-z]+)\.sgml/\1\2\.html/g tr/a-z/A-Z/</pre> <p class="tightenable top">As you might guess from this example, concision is everything when it comes to crafting regular expressions, and while this syntax won't win any beauty prizes, it follows a logical format which you can learn to read and write easily with just a little bit of practice.</p> <p class="tightenable">Unfortunately, regex syntax and idiosyncracies vary a lot between applications. Even if a regex language looks the same in two different programs, chances are it behaves differently under certain circumstances.</p> <p class="tightenable"><small> [1] => cached_wikilink Object ( [_page] => P ) [2] => long xxx movies xxx toys xxxl download videos xxx [3] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060204143814/http://www.network54.com/index/56720 [_label] => fotos porno ) [4] => black xxx</p> <p class="tightenable">korean man korean man korean man korean nudes [5] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060707233142/http://www.bfu.bg/site/files/?cla6/asiankorean [_label] => korean american women ) [6] => korean nudes</p> <p class="tightenable">webcam gay amateur gay sex cams gay hidden cams gay webcam [7] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060708154752/http://www.bfu.bg/site/files/?cla6/gaygay [_label] => gay webcam sex ) [8] => gay sex cams</p> <p class="tightenable">fucked in the ass ass fucking ass hole nurses ass [9] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060706094415/http://www.bfu.bg/site/files/?cla6/analass [_label] => toons ass ) [10] => head up ass</p> <p class="tightenable">women\'s shaving shaved twat shaved muff pubic [11] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060708155628/http://www.bfu.bg/site/files/?cla6/shavedshaved [_label] => shaved clits ) [12] => shaved vulva</p> <p class="tightenable">jerking off stories jerk off buddies jerking off pics jerking off together [13] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060202100216/http://www.network54.com/index/56747 [_label] => jerk off galleries ) [14] => webcam jerk off</p> <p class="tightenable">hairy women sites poilues atk galleries black hairy pussy [15] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060131191100/http://www.network54.com/index/56718 [_label] => big hairy balls ) [16] => the atk galleria</p> <p class="tightenable">photos transsexuals transsexual escorts transsexual female transexuals escort [17] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060131190217/http://www.network54.com/index/56801 [_label] => exclusive tgirls ) [18] => transsexual dating</p> <p class="tightenable">thong butt funny ass big butt black white ass [19] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060131185815/http://www.network54.com/index/56649 [_label] => butthole ) [20] => beavis and butt head</p> <p class="tightenable bottom"></small></p> </div> ) [_description] => If you've ever typed "cp *.html ../" at the UNIX command prompt, or entered "garden?" into a web-based search engine, you've already used a simple regular expression. Regular expressions ("regex's" for short) are sets of symbols and syntactic elements used to match patterns of text. ) |
hits | 1944 |
get_versiondata('RegularExpressions',16) | |
%content | If you've ever typed "cp *.html ../" at ... |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1186731259 |
pagetype | wikitext |
get_versiondata('RegularExpressions',15) | |
%content | If you've ever typed "cp *.html ../" at ... |
_supplanted | 1186731259 |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1186724927 |
pagetype | wikitext |
get_versiondata('RegularExpressions',14) | |
%content | If you've ever typed "cp *.html ../" at ... |
_supplanted | 1186724927 |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1184034972 |
pagetype | wikitext |
get_versiondata('RegularExpressions',13) | |
%content | If you've ever typed "cp *.html ../" at ... |
_supplanted | 1184034972 |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1184018903 |
pagetype | wikitext |
get_versiondata('RegularExpressions',12) | |
%content | If you've ever typed "cp *.html ../" at ... |
_supplanted | 1184018903 |
author | 70.98.72.98 |
author_id | 70.98.72.98 |
is_minor_edit | |
markup | 2 |
mtime | 1183503860 |
pagetype | wikitext |
summary | remove spam |
get_versiondata('RegularExpressions',10) | |
%content | If you've ever typed "cp *.html ../" at ... |
_supplanted | 1183050033 |
author | 65.242.74.195 |
author_id | 65.242.74.195 |
is_minor_edit | |
mtime | 1100809440 |
pagetype | wikitext |