<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.conservapedia.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WWFY</id>
	<title>Conservapedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.conservapedia.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WWFY"/>
	<link rel="alternate" type="text/html" href="https://www.conservapedia.com/Special:Contributions/WWFY"/>
	<updated>2026-10-01T02:00:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://www.conservapedia.com/index.php?title=Regular_expression&amp;diff=909245</id>
		<title>Regular expression</title>
		<link rel="alternate" type="text/html" href="https://www.conservapedia.com/index.php?title=Regular_expression&amp;diff=909245"/>
		<updated>2011-09-03T21:32:35Z</updated>

		<summary type="html">&lt;p&gt;WWFY: better maybe?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A '''regular expression''' is used in computer software to define a sequence of characters.&amp;lt;ref&amp;gt;&amp;quot;A regular expression, or regex for short, is a pattern describing a certain amount of text.&amp;quot; [http://www.regular-expressions.info/quickstart.html Regular Expression Quick Start] &amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In general, any character will match itself, but there are a dozen special characters, including the [[escape character]].&lt;br /&gt;
&lt;br /&gt;
To match any of 2 or more characters, enclose them in square brackets. For example,&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; gr[ae]y&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
will match ''gray'' or ''grey''.&lt;br /&gt;
&lt;br /&gt;
A regular expression is matched from left to right and is processed one [[token]] at a time.  Certain characters have special meanings within the description of a regular language:&lt;br /&gt;
* '*' - the previous construction is matched 0 or more times&lt;br /&gt;
* '+' - the previous construction is matched 1 or more times&lt;br /&gt;
* '?' - the previous construction is matched 0 or 1 times&lt;br /&gt;
* '(...)' - the contents between the parentheses is considered a single construction&lt;br /&gt;
* '...|...' - the construction on the left of the '|' may be matched or the construction on the right of the '|' may be matched.&lt;br /&gt;
* '&amp;lt;nowiki&amp;gt;[...]&amp;lt;/nowiki&amp;gt;' - match one of the characters contained within the square braces.&lt;br /&gt;
* '.' - match any single character&lt;br /&gt;
* '^' - beginning of a string&lt;br /&gt;
* '$' - end of a string&lt;br /&gt;
&lt;br /&gt;
There also exists a wide range of special character classes distinguished with a backslash (a small list):&lt;br /&gt;
* '\\' - a literal backslash&lt;br /&gt;
* '\.' - a literal period&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regular expressions have also been extended by many languages, some of which extend them to the point where they are able to match a wider range of languages than is specified by a regular language.&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* /Mrs?\. Smith/ - matches 'Mr. Smith', 'Mrs. Smith'&lt;br /&gt;
* /^a*b*$/ - matches 'a', 'ab', 'b', 'aaaab', 'abbbbb', 'aaabbb', ''&lt;br /&gt;
* /[1-9][0-9]*(\.0|([1-9][0-9]*))+/ - matches version numbers: 1, 1.0, 2.3, 103.4, 42.5.6.8.9, 7.0.8.9&lt;br /&gt;
&lt;br /&gt;
== Formal definition and Limitations ==&lt;br /&gt;
&lt;br /&gt;
A '''regular expression''' is particular instance of a non-[[deterministic]] [[finite]] state [[automaton]].  Regular expressions are a [[type-3 grammar]] in the [[Chomsky hierarchy]] of [[language]].&lt;br /&gt;
&lt;br /&gt;
A regular expression is not able to count.  This is because there is a finite number of states.  Consider the language that is specified by a&amp;lt;sup&amp;gt;&amp;lt;small&amp;gt;n&amp;lt;/small&amp;gt;&amp;lt;/sup&amp;gt;ba&amp;lt;sup&amp;gt;&amp;lt;small&amp;gt;n&amp;lt;/small&amp;gt;&amp;lt;/sup&amp;gt;.  Examples of this language include b, aba, aabaa, aaabaaa, etc... A regular expression - being a [[finite state automaton]] itself - has a finite number of states that it can be in.  If there a point at which the state loops back on itself it is no longer able to match that language.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[non-deterministic finite automaton]]&lt;br /&gt;
* [[deterministic finite automaton]]&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* http://www.regular-expressions.info/reference.html&lt;br /&gt;
[[Category:Computer Science]]&lt;br /&gt;
[[Category:language]]&lt;/div&gt;</summary>
		<author><name>WWFY</name></author>
	</entry>
	<entry>
		<id>https://www.conservapedia.com/index.php?title=Regular_expression&amp;diff=909241</id>
		<title>Regular expression</title>
		<link rel="alternate" type="text/html" href="https://www.conservapedia.com/index.php?title=Regular_expression&amp;diff=909241"/>
		<updated>2011-09-03T21:31:36Z</updated>

		<summary type="html">&lt;p&gt;WWFY: fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A '''regular expression''' is used in computer software to define a sequence of characters.&amp;lt;ref&amp;gt;&amp;quot;A regular expression, or regex for short, is a pattern describing a certain amount of text.&amp;quot; [http://www.regular-expressions.info/quickstart.html Regular Expression Quick Start] &amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In general, any character will match itself, but there are a dozen special characters, including the [[escape character]].&lt;br /&gt;
&lt;br /&gt;
To match any of 2 or more characters, enclose them in square brackets. For example,&lt;br /&gt;
&lt;br /&gt;
 gr[ae]y&lt;br /&gt;
&lt;br /&gt;
will match ''gray'' or ''grey''.&lt;br /&gt;
&lt;br /&gt;
A regular expression is matched from left to right and is processed one [[token]] at a time.  Certain characters have special meanings within the description of a regular language:&lt;br /&gt;
* '*' - the previous construction is matched 0 or more times&lt;br /&gt;
* '+' - the previous construction is matched 1 or more times&lt;br /&gt;
* '?' - the previous construction is matched 0 or 1 times&lt;br /&gt;
* '(...)' - the contents between the parentheses is considered a single construction&lt;br /&gt;
* '...|...' - the construction on the left of the '|' may be matched or the construction on the right of the '|' may be matched.&lt;br /&gt;
* '&amp;lt;nowiki&amp;gt;[...]&amp;lt;/nowiki&amp;gt;' - match one of the characters contained within the square braces.&lt;br /&gt;
* '.' - match any single character&lt;br /&gt;
* '^' - beginning of a string&lt;br /&gt;
* '$' - end of a string&lt;br /&gt;
&lt;br /&gt;
There also exists a wide range of special character classes distinguished with a backslash (a small list):&lt;br /&gt;
* '\\' - a literal backslash&lt;br /&gt;
* '\.' - a literal period&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regular expressions have also been extended by many languages, some of which extend them to the point where they are able to match a wider range of languages than is specified by a regular language.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* /Mrs?\. Smith/ - matches 'Mr. Smith', 'Mrs. Smith'&lt;br /&gt;
* /^a*b*$/ - matches 'a', 'ab', 'b', 'aaaab', 'abbbbb', 'aaabbb', ''&lt;br /&gt;
* /[1-9][0-9]*(\.0|([1-9][0-9]*))+/ - matches version numbers: 1, 1.0, 2.3, 103.4, 42.5.6.8.9, 7.0.8.9&lt;br /&gt;
&lt;br /&gt;
== Formal definition and Limitations ==&lt;br /&gt;
&lt;br /&gt;
A '''regular expression''' is particular instance of a non-[[deterministic]] [[finite]] state [[automaton]].  Regular expressions are a [[type-3 grammar]] in the [[Chomsky hierarchy]] of [[language]].&lt;br /&gt;
&lt;br /&gt;
A regular expression is not able to count.  This is because there is a finite number of states.  Consider the language that is specified by a&amp;lt;sup&amp;gt;&amp;lt;small&amp;gt;n&amp;lt;/small&amp;gt;&amp;lt;/sup&amp;gt;ba&amp;lt;sup&amp;gt;&amp;lt;small&amp;gt;n&amp;lt;/small&amp;gt;&amp;lt;/sup&amp;gt;.  Examples of this language include b, aba, aabaa, aaabaaa, etc... A regular expression - being a [[finite state automaton]] itself - has a finite number of states that it can be in.  If there a point at which the state loops back on itself it is no longer able to match that language.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[non-deterministic finite automaton]]&lt;br /&gt;
* [[deterministic finite automaton]]&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* http://www.regular-expressions.info/reference.html&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
[[Category:Computer Science]]&lt;br /&gt;
[[Category:language]]&lt;/div&gt;</summary>
		<author><name>WWFY</name></author>
	</entry>
</feed>