<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://noumenapedia.net/index.php?action=history&amp;feed=atom&amp;title=Help%3ASearching%2FRegex</id>
	<title>Help:Searching/Regex - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://noumenapedia.net/index.php?action=history&amp;feed=atom&amp;title=Help%3ASearching%2FRegex"/>
	<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Help:Searching/Regex&amp;action=history"/>
	<updated>2026-10-28T10:46:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://noumenapedia.net/index.php?title=Help:Searching/Regex&amp;diff=21476&amp;oldid=prev</id>
		<title>Deleatur yhe: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Help:Searching/Regex&amp;diff=21476&amp;oldid=prev"/>
		<updated>2026-09-10T09:42:33Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:42, 10 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Deleatur yhe</name></author>
	</entry>
	<entry>
		<id>https://noumenapedia.net/index.php?title=Help:Searching/Regex&amp;diff=21475&amp;oldid=prev</id>
		<title>wikipedia&gt;Mathglot: /* Metacharacters */ Pattern anchors.</title>
		<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Help:Searching/Regex&amp;diff=21475&amp;oldid=prev"/>
		<updated>2026-04-27T07:51:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Metacharacters: &lt;/span&gt; Pattern anchors.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- See [[Help:LST]] how to leverage {transclusion} unto {#section:transclusion}.&lt;br /&gt;
You can transclude with or without these section tags if you use #section-h. &lt;br /&gt;
&lt;br /&gt;
Now, to transclude material from this page, &lt;br /&gt;
and have it directly, transparently, seamlessly editable from your target page, &lt;br /&gt;
do NOT type in your own heading. Instead, do a Labeled Section Transclusion from here.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, the heading levels are fixed, and there&amp;#039;s no way around this.&lt;br /&gt;
--&amp;gt;{{Update|Metacharacters and Workarounds|date=December 2025|reason=around September 2025, Regex search was enhanced to treat codes such as \n in a manner different from the documentation on this page}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{about | Cirrus regular expressions usable in [[WP:Advanced search|Advanced search]]&lt;br /&gt;
  |the main Wikimedia page about Cirrus regex search | mw:Help:CirrusSearch#Regular expression searches &lt;br /&gt;
  |regular expressions with AutoWikiBrowser | Wikipedia:AutoWikiBrowser/Regular expression}}&lt;br /&gt;
To perform a regex search, use the ordinary search box with the syntax [[Help:Searching#insource:|&amp;lt;code&amp;gt;insource:/{{var|regex}}/&amp;lt;/code&amp;gt;]] or [[Help:Searching#intitle:|&amp;lt;code&amp;gt;intitle:/{{var|regex}}/&amp;lt;/code&amp;gt;]].&amp;lt;/noinclude&amp;gt;&amp;lt;section begin=&amp;quot;Regular expressions&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Indexed search ==&lt;br /&gt;
All [[wp:pagename|pages]] on Wikipedia are scanned and indexed by Wikipedia&amp;#039;s own [[search engine]]. The entire wiki is treated as one &amp;quot;full text&amp;quot; kept in a separate database (an &amp;quot;index&amp;quot;) built just for searching. It&amp;#039;s like the index in a book, but practically every word and every number is [[search engine indexing|indexed]] to every page.&amp;lt;ref&amp;gt;When you do a basic keyword search on Wikipedia, you aren&amp;#039;t scanning pages in real time; you are simply looking up an entry in the index. All content is at all times &amp;quot;known&amp;quot; and resides in indexes. So when you read something like &amp;quot;search for pages containing...&amp;quot;, you can mentally replace &amp;quot;search for...&amp;quot; with &amp;quot;search &amp;#039;&amp;#039;the index&amp;#039;&amp;#039; for...&amp;quot;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since each word in the prebuilt search index already points to the pages that contain it, a keyword search usually corresponds to a single record lookup in the index. (This is also true for phrases, to a certain extent.) &amp;quot;Index searches&amp;quot; take basically no time to execute. They are cheap and plentiful.&lt;br /&gt;
&lt;br /&gt;
There are separate indexes kept updated for: &lt;br /&gt;
* titles&lt;br /&gt;
* visual content&lt;br /&gt;
* wikitext&lt;br /&gt;
* templates&lt;br /&gt;
Any text transcluded from a template is indexed as if it were really present on its &amp;#039;&amp;#039;target&amp;#039;&amp;#039; page. (In other words, by default, a keyword search is done on the text of the &amp;#039;&amp;#039;rendered&amp;#039;&amp;#039; Wikipedia page, not on the page source itself. However, you can change this by using &amp;lt;code&amp;gt;insource:{{var|keyword}}&amp;lt;/code&amp;gt; to search the source markup instead of the rendered page.)&lt;br /&gt;
&lt;br /&gt;
Preparing and maintaining the search indexes is done by Wikipedia&amp;#039;s servers, in the background, in near real time. As soon as you save the page, a few seconds later you can search for the changes you just made. For templates that are transcluded onto many many pages, the propagation of those changes to all the pages in the index might take a while.&lt;br /&gt;
&lt;br /&gt;
The index is based on alphanumeric characters; it stores no information on non-alphanumeric characters. If you type any punctuation or brackets into the search box when doing an indexed search, those characters will be silently discarded.&lt;br /&gt;
&lt;br /&gt;
A basic indexed search&lt;br /&gt;
* searches only article space by default.&lt;br /&gt;
* matches &amp;#039;&amp;#039;only letters and numbers&amp;#039;&amp;#039;.  This is usually not a problem. &lt;br /&gt;
* lands a lot of search results. You rely heavily on page ranking rules. You then refine search results based on the topmost pages. This is done with the &amp;#039;&amp;#039;not&amp;#039;&amp;#039; filter, signified by a minus sign attached to the front of the unwanted word to filter out page-hit noise you could not have predicted.&lt;br /&gt;
* is an &amp;quot;aggressive matcher&amp;quot; including as many pages as it can by [[stemming|matching all forms]] of each word you enter.&lt;br /&gt;
&lt;br /&gt;
== Regular expression search ==&lt;br /&gt;
Instead of doing a basic indexed search on keywords, you can perform a &amp;#039;&amp;#039;regex search&amp;#039;&amp;#039;, which bypasses the index. A regex search scans the text of each page on Wikipedia in real time, character by character, to find pages that match a specific sequence or pattern of characters. Unlike keyword searching, regex searching is by default case-sensitive, does not ignore punctuation, and operates directly on the page source (MediaWiki markup) rather than on the rendered contents of the page.&lt;br /&gt;
&lt;br /&gt;
To perform a regex search, use the ordinary search box with the syntax [[Help:Searching#insource:|&amp;lt;code&amp;gt;insource:/{{var|regex}}/&amp;lt;/code&amp;gt;]] or [[Help:Searching#intitle:|&amp;lt;code&amp;gt;intitle:/{{var|regex}}/&amp;lt;/code&amp;gt;]]. The expression &amp;lt;code&amp;gt;{{var|regex}}&amp;lt;/code&amp;gt; denotes a [[regular expression]] in MediaWiki-flavored regular expression syntax.&lt;br /&gt;
&lt;br /&gt;
=== Use regexes responsibly ===&lt;br /&gt;
Because regex searching scans each page character by character, it is generally much slower than an index search. You can—and should—add additional search terms when using &amp;lt;code&amp;gt;insource:/{{var|regex}}/&amp;lt;/code&amp;gt; to reduce the amount of text being processed. For example:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;polish insource:/polish/&amp;lt;/code&amp;gt; finds pages that match a case-insensitive [[stemming|stemmed]] keyword search for &amp;quot;polish&amp;quot; (including &amp;quot;polished&amp;quot; or &amp;quot;polishing&amp;quot;); then does a case-sensitive regex search within those pages. Only pages that match both filters are returned.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;insource:polish insource:/polish/&amp;lt;/code&amp;gt; is similar, but starts with a case-insensitive search of the source markup instead of the rendered page (so it will find usages like &amp;lt;code&amp;gt;[[Polish people|Poles]]&amp;lt;/code&amp;gt;, and not find transclusions).&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;intitle:&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;incategory:&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;linksto:&amp;lt;/code&amp;gt; are excellent filters.{{huh|date=August 2023}}&amp;lt;!-- needs examples --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;hastemplate:&amp;lt;/code&amp;gt; is a good filter.{{huh|date=August 2023}}&amp;lt;!-- needs examples --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding an index-based search term to reduce the amount of text being scanned is important simply to make your own regex search finish in a reasonable amount of time. Regex searches that take too long will &amp;quot;time out&amp;quot; and return only partial results. Overuse of slow regex searches might cause temporary throttling of the feature for yourself and/or everyone on Wikipedia. (However, you cannot affect [[WP:PERF|the site performance of Wikipedia as a whole]] simply by abusing regex search.) Remember that a single regex search can take multiple seconds, and there are currently {{NUMBEROFUSERS}} registered users on Wikipedia. Use regex search responsibly.&amp;lt;section end=&amp;quot;Regular expressions&amp;quot; /&amp;gt;&amp;lt;section begin=&amp;quot;Metacharacters&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Metacharacters ===&lt;br /&gt;
MediaWiki&amp;#039;s [[regular expression]] syntax works like this:&lt;br /&gt;
&lt;br /&gt;
* Most characters represent themselves. For example, &amp;lt;code&amp;gt;insource:/C-3p0/&amp;lt;/code&amp;gt; will search for pages containing the literal string &amp;quot;C-3p0&amp;quot; (case-sensitive).&lt;br /&gt;
* The following &amp;#039;&amp;#039;metacharacters&amp;#039;&amp;#039; are treated specially: &amp;lt;code&amp;gt;. + * ? | { [ ] ( ) &amp;quot; \ # @ &amp;lt; ~&amp;lt;/code&amp;gt;. Any metacharacter can be &amp;#039;&amp;#039;escaped&amp;#039;&amp;#039; by preceding it with a backslash &amp;lt;code&amp;gt;\&amp;lt;/code&amp;gt;. Preceding any other character with a backslash is harmless. For example, &amp;lt;code&amp;gt;insource:/yes\.\no/&amp;lt;/code&amp;gt; will search for pages containing the literal string &amp;quot;yes.no&amp;quot; (case-sensitive). Regex experts should note that &amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt; does not mean &amp;quot;newline&amp;quot;, &amp;lt;code&amp;gt;\d&amp;lt;/code&amp;gt; does not mean &amp;quot;digit&amp;quot;, and so on: In MediaWiki syntax, the &amp;#039;&amp;#039;only&amp;#039;&amp;#039; use of &amp;lt;code&amp;gt;\&amp;lt;/code&amp;gt; is to escape metacharacters.&lt;br /&gt;
* &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; is special because it indicates the end of the regex. For example, &amp;lt;code&amp;gt;insource:/yes/no/&amp;lt;/code&amp;gt; is treated the same as &amp;lt;code&amp;gt;insource:/yes/ no&amp;lt;/code&amp;gt; (because the keyword search for &amp;lt;code&amp;gt;no/&amp;lt;/code&amp;gt; ignores punctuation). The &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; character must be backslash-escaped everywhere it appears inside a regex – even inside square brackets or quotation marks.&lt;br /&gt;
* &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; matches any single character, including newline. For example, &amp;lt;code&amp;gt;insource:/yes.no/&amp;lt;/code&amp;gt; is matched by &amp;lt;code&amp;gt;yes/no&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;yes no&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;yesuno&amp;lt;/code&amp;gt;, etc.&lt;br /&gt;
* &amp;lt;code&amp;gt;( )&amp;lt;/code&amp;gt; group a sequence of characters into an atomic unit.&lt;br /&gt;
* Pattern anchors &amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt; are available for intitle:// searches only. &lt;br /&gt;
* &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt; goes between two sequences and matches either of them. For example, &amp;lt;code&amp;gt;insource:/a(g|ch)e/&amp;lt;/code&amp;gt; matches either &amp;lt;code&amp;gt;age&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ache&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; matches the preceding character or group one or more times. For example, &amp;lt;code&amp;gt;insource:/ab+(cd)+/&amp;lt;/code&amp;gt; is matched by &amp;lt;code&amp;gt;abcd&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;abbbcd&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;abbcdcd&amp;lt;/code&amp;gt;, etc. &amp;lt;code&amp;gt;insource:/a(g|ch)+e/&amp;lt;/code&amp;gt; matches &amp;lt;code&amp;gt;agge&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;achgchchggche&amp;lt;/code&amp;gt;, etc.&lt;br /&gt;
* &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; matches the preceding character or group any number of times (including zero). For example, &amp;lt;code&amp;gt;insource:/ab*(cd)*/&amp;lt;/code&amp;gt; is matched by &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;abbb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acdcd&amp;lt;/code&amp;gt;, etc.&lt;br /&gt;
* &amp;lt;code&amp;gt;?&amp;lt;/code&amp;gt; matches the preceding character or group exactly zero or one times.&lt;br /&gt;
* &amp;lt;code&amp;gt;{ }&amp;lt;/code&amp;gt; match the preceding character or group a fixed number of times. For example, &amp;lt;code&amp;gt;insource:/[a-z]{2}/&amp;lt;/code&amp;gt; matches exactly 2 lowercase letters in a row. &amp;lt;code&amp;gt;insource:/[a-z]{2,4}/&amp;lt;/code&amp;gt; matches any string of 2, 3, or 4 lowercase letters. &amp;lt;code&amp;gt;insource:/[a-z]{2,}/&amp;lt;/code&amp;gt; matches any string of 2 &amp;#039;&amp;#039;or more&amp;#039;&amp;#039; lowercase letters.&lt;br /&gt;
* &amp;lt;code&amp;gt;[ ]&amp;lt;/code&amp;gt; introduce a &amp;#039;&amp;#039;character class&amp;#039;&amp;#039;, which matches a single instance of any of the characters in the class. For example, &amp;lt;code&amp;gt;insource:/[Pp]olish/&amp;lt;/code&amp;gt; matches both &amp;lt;code&amp;gt;Polish&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;polish&amp;lt;/code&amp;gt;. Characters inside square brackets generally don&amp;#039;t have to be escaped, although escaping them remains harmless, and &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; still needs to be escaped everywhere. For example, &amp;lt;code&amp;gt;insource:/[.\/\]\n]/&amp;lt;/code&amp;gt; matches a single instance of &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Inside a character class, the character &amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; (if it appears first of all) represents negation, and the character &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; (unless it appears first or last) represents a range. For example, &amp;lt;code&amp;gt;insource:/[A-Za-z0-9_]/&amp;lt;/code&amp;gt; matches any alphanumeric character or underscore, and &amp;lt;code&amp;gt;insource:/[^A-Za-z]/&amp;lt;/code&amp;gt; matches any &amp;#039;&amp;#039;non&amp;#039;&amp;#039;-alphabetic character.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;amp;lt; &amp;gt;&amp;lt;/code&amp;gt; stand for numbers treated as numbers, not characters. For example, &amp;lt;code&amp;gt;insource:/AD &amp;lt;476-1453&amp;gt;/&amp;lt;/code&amp;gt; is matched by &amp;lt;code&amp;gt;AD 476&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;AD 477&amp;lt;/code&amp;gt;, ... &amp;lt;code&amp;gt;AD 1452&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;AD 1453&amp;lt;/code&amp;gt;, but not &amp;lt;code&amp;gt;AD 1474&amp;lt;/code&amp;gt;. (But it will also match the first six characters of &amp;lt;code&amp;gt;AD 4760&amp;lt;/code&amp;gt;.)&lt;br /&gt;
* &amp;lt;code&amp;gt;~&amp;lt;/code&amp;gt; &amp;quot;looks ahead&amp;quot; and negates the next character or group. For example, &amp;lt;code&amp;gt;insource:/crab~(cake)c/&amp;lt;/code&amp;gt; should match the first five characters of &amp;lt;code&amp;gt;crabclaw&amp;lt;/code&amp;gt; but not the first five characters of &amp;lt;code&amp;gt;crabcake&amp;lt;/code&amp;gt;.{{huh|date=August 2023}}&amp;lt;!-- It appears that this is NOT how it actually works, though; look at those search results. How does it actually work? --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a few additional quirks of the syntax:&lt;br /&gt;
&lt;br /&gt;
* The metacharacter &amp;lt;code&amp;gt;@&amp;lt;/code&amp;gt; is a synonym for &amp;lt;code&amp;gt;.*&amp;lt;/code&amp;gt; (match any sequence of characters at all).&lt;br /&gt;
* A search &amp;lt;code&amp;gt;insource:/0/&amp;lt;/code&amp;gt; fails, although &amp;lt;code&amp;gt;insource:/1/&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;insource:/\0/&amp;lt;/code&amp;gt; both succeed.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;quot; &amp;quot;&amp;lt;/code&amp;gt; are an escape mechanism, like square brackets or the backslash. For example, &amp;lt;code&amp;gt;insource:/&amp;quot;.*&amp;quot;/&amp;lt;/code&amp;gt; means the same thing as &amp;lt;code&amp;gt;insource:/\.\*/&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The character &amp;lt;code&amp;gt;#&amp;lt;/code&amp;gt; is also a metacharacter and must be escaped.{{huh|date=August 2023}}&amp;lt;!-- What do they do? --&amp;gt;&amp;lt;section end=&amp;quot;Metacharacters&amp;quot; /&amp;gt;&amp;lt;section begin=&amp;quot;Character classes&amp;quot; /&amp;gt;&lt;br /&gt;
* Regex experts should note that &amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt; does not mean &amp;quot;newline&amp;quot;, &amp;lt;code&amp;gt;\d&amp;lt;/code&amp;gt; does not mean &amp;quot;digit&amp;quot;, and so on.&lt;br /&gt;
* Regex experts should note that &amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; does not mean &amp;quot;beginning of text&amp;quot; and &amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt; does not mean &amp;quot;end of text&amp;quot;. Searching from the beginning or end of a Wikipedia page is not generally useful.&lt;br /&gt;
&lt;br /&gt;
====Workarounds for some character classes====&lt;br /&gt;
&amp;lt;!-- Please keep this section in sync with [[mw:Help:CirrusSearch#Substitutions for some metacharacters]] --&amp;gt;&lt;br /&gt;
Although character classes &amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;\s&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;\S&amp;lt;/code&amp;gt; are not supported, you may use these workarounds:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &lt;br /&gt;
!scope=&amp;quot;col&amp;quot;| [[Perl Compatible Regular Expressions|PCRE]]&lt;br /&gt;
!scope=&amp;quot;col&amp;quot;| MediaWiki&lt;br /&gt;
!scope=&amp;quot;col&amp;quot;| Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;[^ -􏿽]&amp;lt;/code&amp;gt; || A newline (also a [[Tab key#Tab characters|tabulation character]] can be found{{ref|a}})&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[^\n]&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;[ -􏿽]&amp;lt;/code&amp;gt; || Any character &amp;#039;&amp;#039;except&amp;#039;&amp;#039; a newline and tabulation&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;\s&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;[^!-􏿽]&amp;lt;/code&amp;gt; || A whitespace character: space, newline, or tabulation&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;\S&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;[!-􏿽]&amp;lt;/code&amp;gt; || Any character &amp;#039;&amp;#039;except&amp;#039;&amp;#039; whitespace&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{note|a||To exclude the tabulation character as well, [https://codepoints.net/U+0009 copy it] and add it to the character set.}}&lt;br /&gt;
&lt;br /&gt;
In these ranges, &amp;quot; &amp;quot; (space) is the character immediately following the [[Control character|control characters]], &amp;quot;!&amp;quot; is the character immediately following space, and &amp;quot;􏿽&amp;quot; is U+10FFFF, the last character in [[Unicode]]. Thus, the range from &amp;quot; &amp;quot; to &amp;quot;􏿽&amp;quot; includes all characters except for control characters (of which articles may contain newlines and tabulation), while the range from &amp;quot;!&amp;quot; to &amp;quot;􏿽&amp;quot; includes all characters except for control characters and space.&amp;lt;section end=&amp;quot;Metacharacters&amp;quot; /&amp;gt;&amp;lt;section begin=&amp;quot;Alternation&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Mathglot</name></author>
	</entry>
</feed>