<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ultraedit.com/index.php?action=history&amp;feed=atom&amp;title=Regular_expressions</id>
		<title>Regular expressions - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ultraedit.com/index.php?action=history&amp;feed=atom&amp;title=Regular_expressions"/>
		<link rel="alternate" type="text/html" href="https://wiki.ultraedit.com/index.php?title=Regular_expressions&amp;action=history"/>
		<updated>2026-06-18T06:35:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://wiki.ultraedit.com/index.php?title=Regular_expressions&amp;diff=217&amp;oldid=prev</id>
		<title>Idmadmin at 13:31, 10 August 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.ultraedit.com/index.php?title=Regular_expressions&amp;diff=217&amp;oldid=prev"/>
				<updated>2017-08-10T13:31:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039; lang=&#039;en&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:31, 10 August 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l244&quot; &gt;Line 244:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 244:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Perl regular expressions]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Perl regular expressions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[Special search characters]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Idmadmin</name></author>	</entry>

	<entry>
		<id>https://wiki.ultraedit.com/index.php?title=Regular_expressions&amp;diff=198&amp;oldid=prev</id>
		<title>Idmadmin: Created page with &quot;In addition to Perl regular expressions, UltraEdit supports two other &quot;legacy&quot; styles: a proprietary regular expression syntax and a basic Unix syntax. We typically recomm...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ultraedit.com/index.php?title=Regular_expressions&amp;diff=198&amp;oldid=prev"/>
				<updated>2017-08-10T12:25:11Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;In addition to &lt;a href=&quot;/Perl_regular_expressions&quot; title=&quot;Perl regular expressions&quot;&gt;Perl regular expressions&lt;/a&gt;, UltraEdit supports two other &amp;quot;legacy&amp;quot; styles: a proprietary regular expression syntax and a basic Unix syntax. We typically recomm...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In addition to [[Perl regular expressions]], UltraEdit supports two other &amp;quot;legacy&amp;quot; styles: a proprietary regular expression syntax and a basic Unix syntax. We typically recommend using Perl regular expressions, as these are far more powerful and robust than these two legacy styles.&lt;br /&gt;
&lt;br /&gt;
==UltraEdit (legacy) style syntax==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Symbol&lt;br /&gt;
!Function&lt;br /&gt;
|-&lt;br /&gt;
|%&lt;br /&gt;
|Matches the start of line - Indicates the search string must be at the beginning of a line but does not include any line terminator characters in the resulting string selected.&lt;br /&gt;
|-&lt;br /&gt;
|$&lt;br /&gt;
|Matches the end of line - Indicates the search string must be at the end of line but does not include any line terminator characters in the resulting string selected.&lt;br /&gt;
|-&lt;br /&gt;
|?&lt;br /&gt;
|Matches any single character except newline.&lt;br /&gt;
|-&lt;br /&gt;
|*&lt;br /&gt;
|Matches any number of occurrences of any character except newline.  At least one occurrence of the preceding character or one of the characters in preceding character set must be found.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;+&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|Matches one or more of the preceding single character/character set.  At least one occurrence of the character must be found.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;++&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|Matches the preceding single character/character set zero or more times.&lt;br /&gt;
|-&lt;br /&gt;
|^b&lt;br /&gt;
|Matches a page break.&lt;br /&gt;
|-&lt;br /&gt;
|^p&lt;br /&gt;
|Matches a newline (CR/LF) (paragraph) (DOS Files)&lt;br /&gt;
|-&lt;br /&gt;
|^r&lt;br /&gt;
|Matches a newline (CR Only) (paragraph) (MAC Files)&lt;br /&gt;
|-&lt;br /&gt;
|^n&lt;br /&gt;
|Matches a newline (LF Only) (paragraph) (UNIX Files)&lt;br /&gt;
|-&lt;br /&gt;
|^t&lt;br /&gt;
|Matches a tab character&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;[xyz]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|A character set.  Matches any characters between brackets.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;[~xyz]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|A negative character set.  Matches any characters NOT between brackets including newline characters.&lt;br /&gt;
|-&lt;br /&gt;
|^{A^}^{B^}&lt;br /&gt;
|Matches expression A OR B&lt;br /&gt;
|-&lt;br /&gt;
|^&lt;br /&gt;
|Overrides the following regular expression character&lt;br /&gt;
|-&lt;br /&gt;
|^(...^)  &lt;br /&gt;
|Brackets or tags an expression to use in the replace command.  A regular expression may have up to 9 tagged expressions, numbered according to their order in the regular expression. &lt;br /&gt;
  &lt;br /&gt;
The corresponding replacement expression is ^x, for x in the range 1-9.  Example: If ^(h*o^) ^(f*s^) matches &amp;quot;hello folks&amp;quot;, ^2 ^1 would replace it with &amp;quot;folks hello&amp;quot;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note: ^ refers to the character &amp;#039;^&amp;#039; , not the Ctrl key.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|m?n&lt;br /&gt;
|matches &amp;quot;man&amp;quot;, &amp;quot;men&amp;quot;, &amp;quot;min&amp;quot; but not &amp;quot;moon&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|t*t&lt;br /&gt;
|matches &amp;quot;test&amp;quot;, &amp;quot;tonight&amp;quot; and &amp;quot;tea time&amp;quot; (the &amp;quot;tea t&amp;quot; portion) but not &amp;quot;tea time&amp;quot; (newline between &amp;quot;tea &amp;quot; and &amp;quot;time&amp;quot;).&lt;br /&gt;
|-&lt;br /&gt;
|Te+st&lt;br /&gt;
|matches &amp;quot;test&amp;quot;, &amp;quot;teest&amp;quot;, &amp;quot;teeeest&amp;quot; etc. but does not match &amp;quot;tst&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|[aeiou]&lt;br /&gt;
|matches every lowercase vowel&lt;br /&gt;
|-&lt;br /&gt;
|[,.?]&lt;br /&gt;
|matches a literal &amp;quot;,&amp;quot;, &amp;quot;.&amp;quot; or &amp;quot;?&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|[0-9a-z]&lt;br /&gt;
|matches any digit, or lowercase letter&lt;br /&gt;
|-&lt;br /&gt;
|[~0-9]&lt;br /&gt;
|matches any character except a digit (~ means NOT the following)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You may search for an expression A or B as follows:&lt;br /&gt;
 &lt;br /&gt;
&amp;quot;^{John^}^{Tom^}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
This will search for an occurrence of John or Tom.  There should be nothing between the two expressions.&lt;br /&gt;
 &lt;br /&gt;
You may combine A or B and C or D in the same search as follows:&lt;br /&gt;
 &lt;br /&gt;
&amp;quot;^{John^}^{Tom^} ^{Smith^}^{Jones^}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
This will search for John or Tom followed by Smith or Jones.&lt;br /&gt;
 &lt;br /&gt;
==Unix (legacy) style syntax==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Symbol&lt;br /&gt;
!Function&lt;br /&gt;
|-&lt;br /&gt;
|\&lt;br /&gt;
|Indicates the next character has a special meaning.  &amp;quot;n&amp;quot; on it&amp;#039;s own matches the character &amp;quot;n&amp;quot;.  &amp;quot;\n&amp;quot; matches a linefeed or newline character.  See examples below (\d, \f, \n etc).&lt;br /&gt;
|-&lt;br /&gt;
|^&lt;br /&gt;
|Matches/anchors the beginning of line.&lt;br /&gt;
|-&lt;br /&gt;
|$&lt;br /&gt;
|Matches/anchors the end of line.&lt;br /&gt;
|-&lt;br /&gt;
|*&lt;br /&gt;
|Matches the preceding single character/character set zero or more times.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;+&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|Matches one or more of the preceding single character/character set.  At least one occurrence of the preceding character or one of the characters in preceding character set must be found.&lt;br /&gt;
|-&lt;br /&gt;
|. &lt;br /&gt;
|Matches any single character except a newline character.  Does not match repeated newlines.&lt;br /&gt;
|-&lt;br /&gt;
|(expression)&lt;br /&gt;
|Brackets or tags an expression to use in the replace command.  A regular expression may have up to 9 tagged expressions, numbered according to their order in the regular expression. &lt;br /&gt;
&lt;br /&gt;
The corresponding replacement expression is \x, for x in the range 1-9.  Example: If (h.*o) (f.*s) matches &amp;quot;hello folks&amp;quot;, \2 \1 would replace it with &amp;quot;folks hello&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|[xyz]&lt;br /&gt;
|A character set.  Matches any characters between brackets.&lt;br /&gt;
|-&lt;br /&gt;
|[^xyz]&lt;br /&gt;
|A negative character set.  Matches any characters NOT between brackets including newline characters.&lt;br /&gt;
|-&lt;br /&gt;
|\d&lt;br /&gt;
|Matches a digit character.  Equivalent to [0-9].&lt;br /&gt;
|-&lt;br /&gt;
|\D&lt;br /&gt;
|Matches a nondigit character.  Equivalent to [^0-9].&lt;br /&gt;
|-&lt;br /&gt;
|\f&lt;br /&gt;
|Matches a form-feed character.&lt;br /&gt;
|-&lt;br /&gt;
|\n&lt;br /&gt;
|Matches a linefeed character.&lt;br /&gt;
|-&lt;br /&gt;
|\r&lt;br /&gt;
|Matches a carriage return character.&lt;br /&gt;
|-&lt;br /&gt;
|\s&lt;br /&gt;
|Matches any whitespace including space, tab, form-feed, etc but not newline.&lt;br /&gt;
|-&lt;br /&gt;
|\S&lt;br /&gt;
|Matches any non-whitespace character but not newline.&lt;br /&gt;
|-&lt;br /&gt;
|\t&lt;br /&gt;
|Matches a tab character.&lt;br /&gt;
|-&lt;br /&gt;
|\v&lt;br /&gt;
|Matches a vertical tab character.&lt;br /&gt;
|-&lt;br /&gt;
|\w&lt;br /&gt;
|Matches any alphanumeric character including underscore.&lt;br /&gt;
|-&lt;br /&gt;
|\W&lt;br /&gt;
|Matches any character except alphanumeric characters and underscore.&lt;br /&gt;
|-&lt;br /&gt;
|\p&lt;br /&gt;
|Matches CR/LF (same as \r\n) to match a DOS line terminator.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note: ^ refers to the character &amp;#039;^&amp;#039; , not the Ctrl key.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|m.n&lt;br /&gt;
|matches &amp;quot;man&amp;quot;, &amp;quot;men&amp;quot;, &amp;quot;min&amp;quot; but not &amp;quot;moon&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|Te+st&lt;br /&gt;
|matches &amp;quot;test&amp;quot;, &amp;quot;teest&amp;quot;, &amp;quot;teeeest&amp;quot; etc. BUT NOT &amp;quot;tst&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|Te*st&lt;br /&gt;
|matches &amp;quot;test&amp;quot;, &amp;quot;teest&amp;quot;, &amp;quot;teeeest&amp;quot; etc. AND &amp;quot;tst&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;[aeiou]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|matches every lowercase vowel&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;[,.?]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|matches a literal &amp;quot;,&amp;quot;, &amp;quot;.&amp;quot; or &amp;quot;?&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;[0-9a-z]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|matches any digit, or lowercase letter&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;[^0-9]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|matches any character except a digit (^ means NOT the following)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You may search for an expression A or B as follows:&lt;br /&gt;
 &lt;br /&gt;
&amp;quot;(John|Tom)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
This will search for an occurrence of John or Tom.  There should be nothing between the two expressions.&lt;br /&gt;
 &lt;br /&gt;
You may combine A or B and C or D in the same search as follows:&lt;br /&gt;
 &lt;br /&gt;
&amp;quot;(John|Tom) (Smith|Jones)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will search for John or Tom followed by Smith or Jones.&lt;br /&gt;
 &lt;br /&gt;
If regular expressions aren&amp;#039;t enabled for a find/replace, the following special characters are also valid in the Find and Replace fields:&lt;br /&gt;
 &lt;br /&gt;
{|&lt;br /&gt;
!Notation&lt;br /&gt;
!Represents&lt;br /&gt;
|-&lt;br /&gt;
|^t&lt;br /&gt;
|Tab character&lt;br /&gt;
|-&lt;br /&gt;
|^p&lt;br /&gt;
|New line (DOS files - CR/LF, or hex 0D 0A)&lt;br /&gt;
|-&lt;br /&gt;
|^r&lt;br /&gt;
|Carriage return (hex 0D)&lt;br /&gt;
|-&lt;br /&gt;
|^n&lt;br /&gt;
|Line feed (new line in Unix based text files) (hex 0A)&lt;br /&gt;
|-&lt;br /&gt;
|^b&lt;br /&gt;
|Line break&lt;br /&gt;
|-&lt;br /&gt;
|^s&lt;br /&gt;
|Selected text&lt;br /&gt;
|-&lt;br /&gt;
|^c&lt;br /&gt;
|Clipboard contents (up to 30,000 characters)&lt;br /&gt;
|-&lt;br /&gt;
|^^&lt;br /&gt;
|Literal &amp;quot;^&amp;quot; character&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note: ^ refers to the character &amp;#039;^&amp;#039; , not the Ctrl key.   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;idm-see-also&amp;quot;&amp;gt;&lt;br /&gt;
See also: &lt;br /&gt;
* [[Perl regular expressions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Idmadmin</name></author>	</entry>

	</feed>