Wikipedia:Tip of the day/March 22

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Searching Wikipedia with regular expressions (regex)

To search all of Wikipedia using regex, you need to download the Wikipedia database and do the search offline with AWB's Database Scanner. Activate it from the tools menu in AutoWikiBrowser. It returns the names of the pages that match your query, which you can have sent directly to AWB's list maker (then you can use AWB to view them all). The Database Scanner has many features, and each query can be easily configured to match, exclude, specify namespaces, ignore redirects, etc. as you see fit.

To a lesser extent, regex (regular expressions) can be used online to search Wikipedia in the following ways:

To search Wikipedia titles with regex, use grep.
WikEd, the Wikipedia editor for Firefox, can do regex searches within the current page (in the edit window)
AutoWikiBrowser (AWB) can do regex search/replaces, on a list of articles that you provide it.
Read more: Regular expression

Prior tip - Next tip