Template:Totd-day-after-next

Template:Totd-day-after-next

Template:Totd-day-after-next


Please proofread the daily tip before it goes "live"...

It's displayed below two days early, so it can be error-checked and made ready-to-display for all time zones.

Some tips are obsolete. So we need new tips too. Please share your best tips and tip ideas at the Tip of the day department.


edit Day-after-next's tip of the day...

Searching Wikipedia with regular expressions (regex)
Searching with regex online

To search Wikipedia live with regular expressions, use the insource: parameter, followed by your regex search string enclosed in forward slashes, like this: /regular expression/. Here is an example:

insource:/(Abraham|Abe) Lincoln/

insource searches the wikitext version of articles, and so, wikiformatting codes can be included in the search string. If any characters you wish to find are used as special characters within regex, they will need to be "escaped" by preceding each with a backslash. For a cheat sheet on writing regexes, see Wikipedia:AutoWikiBrowser/Regular expression.

For case insensitive searches, include an "i" after the closing forward slash.

Searching with regex offline

To search all of Wikipedia offline using regex, you need to download the Wikipedia database and do the search offline with AutoWikiBrowser's Database Scanner. Activate it from the tools menu in AutoWikiBrowser (AWB). 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.

Other methods of searching Wikipedia with regular expressions
  • To search Wikipedia titles with regex, use Grep.
  • To search within the current page use the edit window:
    • If source editing, use the "Search and replace" dialog by clicking the magnifying glass icon at the far right of the "Advanced" toolbar.
    • If visual editing, type Ctrl-F to get the search box, then click the "(.*)" icon for regular expressions.
    • Regular expressions are also supported by the WikEd text editor gadget.
  • AutoWikiBrowser can do regex search/replaces, on a list of articles that you provide it.
Read more:
The insource: parameter
Regular expression (regex)  
AutoWikiBrowser (AWB)  
WikEd help  
To add this auto-updating template to your user page, use {{totd-day-after-next}}

Share this article:

This article uses material from the Wikipedia article Template:Totd-day-after-next, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.