<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>top 30 Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/top-30/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/top-30/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Thu, 05 Aug 2021 07:30:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>30 Most Popular Regular expression Tricks in Visual Studio Code</title>
		<link>https://www.scmgalaxy.com/tutorials/30-most-popular-regular-expression-tricks-in-visual-studio-code/</link>
					<comments>https://www.scmgalaxy.com/tutorials/30-most-popular-regular-expression-tricks-in-visual-studio-code/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Thu, 05 Aug 2021 07:30:01 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[most popular regular expression trick in visual studio code]]></category>
		<category><![CDATA[most popular regular expression trick in vs code 2021]]></category>
		<category><![CDATA[top 10]]></category>
		<category><![CDATA[top 20]]></category>
		<category><![CDATA[top 30]]></category>
		<category><![CDATA[vs code regular expression]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7434</guid>

					<description><![CDATA[<p>Although almost all text editors now support regular expressions, I use Visual Studio Code for an easy way to know. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/30-most-popular-regular-expression-tricks-in-visual-studio-code/">30 Most Popular Regular expression Tricks in Visual Studio Code</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Although almost all text editors now support regular expressions, I use Visual Studio Code for an easy way to know.</p>



<p class="wp-block-paragraph">You need to enable RegEx by selecting this option. (.*)</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Purpose</strong></td><td><strong>Expression</strong></td><td><strong>Example</strong></td></tr><tr><td>Match any single character (except a line break). For more information, see Any character.</td><td>.</td><td><span class="has-inline-color has-vivid-cyan-blue-color"><code>a.o</code> </span>matches &#8220;aro&#8221; in &#8220;around&#8221; and &#8220;abo&#8221; in &#8220;about&#8221; but not &#8220;acro&#8221; in &#8220;across&#8221;</td></tr><tr><td>Match zero or more occurrences of the preceding expression (match as many characters as possible). For more information, see Match zero or more times.</td><td>*</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">a*r</span></code> matches &#8220;r&#8221; in &#8220;rack&#8221;, &#8220;ar&#8221; in &#8220;ark&#8221;, and &#8220;aar&#8221; in &#8220;aardvark&#8221;</td></tr><tr><td>Match any character zero or more times.</td><td>.*</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">c.*e</span></code> matches &#8220;cke&#8221; in &#8220;racket&#8221;, &#8220;come&#8221; in &#8220;comment&#8221;, and &#8220;code&#8221; in &#8220;code&#8221;</td></tr><tr><td>Match one or more occurrences of the preceding expression (match as many characters as possible). For more information, see Match one or more times.</td><td>+</td><td><span class="has-inline-color has-vivid-cyan-blue-color"><code>e+d</code> </span>matches &#8220;eed&#8221; in &#8220;feeder&#8221; and &#8220;ed&#8221; in &#8220;faded&#8221;</td></tr><tr><td>Match any character one or more times.</td><td>.+</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">e.+e</span></code> matches &#8220;eede&#8221; in &#8220;feeder&#8221; but finds no matches in &#8220;feed&#8221;</td></tr><tr><td>Match zero or more occurrences of the preceding expression (match as few characters as possible). For more information, see Match zero or more times (lazy match).</td><td>*?</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">\w*?d</span></code> matches &#8220;fad&#8221; and &#8220;ed&#8221; in &#8220;faded&#8221; but not the entire word &#8220;faded&#8221; due to the lazy match</td></tr><tr><td>Match one or more occurrences of the preceding expression (match as few characters as possible). For more information, see Match one or more times (lazy match).</td><td>+?</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">e\w+?</span></code> matches &#8220;ee&#8221; in &#8220;asleep&#8221; and &#8220;ed&#8221; in &#8220;faded&#8221; but finds no matches in &#8220;fade&#8221;</td></tr><tr><td>Anchor the match string to the beginning of a line or string</td><td>^</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">^car</span></code> matches the word &#8220;car&#8221; only when it appears at the beginning of a line</td></tr><tr><td>Anchor the match string to the end of a line</td><td>\r?$</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">car\r?$</span></code> matches &#8220;car&#8221; only when it appears at the end of a line</td></tr><tr><td>Anchor the match string to the end of the file</td><td>$</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">car$</span></code> matches &#8220;car&#8221; only when it appears at the end of the file</td></tr><tr><td>Match any single character in a set</td><td>[abc]</td><td><span class="has-inline-color has-vivid-cyan-blue-color"><code>b[abc]</code> </span>matches &#8220;ba&#8221;, &#8220;bb&#8221;, and &#8220;bc&#8221;</td></tr><tr><td>Match any character in a range of characters</td><td>[a-f]</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">be[n-t]</span></code> matches &#8220;bet&#8221; in &#8220;between&#8221;, &#8220;ben&#8221; in &#8220;beneath&#8221;, and &#8220;bes&#8221; in &#8220;beside&#8221;, but finds no matches in &#8220;below&#8221;</td></tr><tr><td>Capture and implicitly number the expression contained within parenthesis</td><td>()</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">([a-z])X\1</span></code> matches &#8220;aXa&#8221;and &#8220;bXb&#8221;, but not &#8220;aXb&#8221;. &#8220;\1&#8221; refers to the first expression group &#8220;[a-z]&#8221;. </td></tr><tr><td>Invalidate a match</td><td>(?!abc)</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">real(?!ity)</span></code> matches &#8220;real&#8221; in &#8220;realty&#8221; and &#8220;really&#8221; but not in &#8220;reality.&#8221; It also finds the second &#8220;real&#8221; (but not the first &#8220;real&#8221;) in &#8220;realityreal&#8221;.</td></tr><tr><td>Match any character that is not in a given set of characters. </td><td>[^abc]</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">be[^n-t]</span></code> matches &#8220;bef&#8221; in &#8220;before&#8221;, &#8220;beh&#8221; in &#8220;behind&#8221;, and &#8220;bel&#8221; in &#8220;below&#8221;, but finds no matches in &#8220;beneath&#8221;</td></tr><tr><td>Match either the expression before or the one after the symbol</td><td>|</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">(sponge|mud) bath</span></code> matches &#8220;sponge bath&#8221; and &#8220;mud bath&#8221;</td></tr><tr><td>Escape the character following the backslash</td><td>\</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">\^</span></code> matches the character ^</td></tr><tr><td>Specify the number of occurrences of the preceding character or group.</td><td>{n}, where &#8216;n&#8217; is the number of occurrences</td><td><span class="has-inline-color has-vivid-cyan-blue-color"><code>x(ab){2}x</code>  </span><span class="has-inline-color has-black-color">that </span>matches &#8220;xababx&#8221;<br><code><span class="has-inline-color has-vivid-cyan-blue-color">x(ab){2,3}x</span></code> matches &#8220;xababx&#8221; and &#8220;xabababx&#8221; but not &#8220;xababababx&#8221;</td></tr><tr><td>Match text in a Unicode category.</td><td>\p{X}, where &#8220;X&#8221; is the Unicode number.</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">\p{Lu}</span></code> matches &#8220;T&#8221; and &#8220;D&#8221; in &#8220;Thomas Doe&#8221;</td></tr><tr><td>Match a word boundary</td><td>\b (Outside a character class <code>\b</code> specifies a word boundary, and inside a character class <code>\b</code> specifies a backspace.)</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">\bin</span></code> matches &#8220;in&#8221; in &#8220;inside&#8221; but finds no matches in &#8220;pinto&#8221;</td></tr><tr><td>Match a line break (that is, a carriage return followed by a newline)</td><td>\r?\n</td><td><span class="has-inline-color has-vivid-cyan-blue-color"><code>End\r?\nBegin</code> </span>matches &#8220;End&#8221; and &#8220;Begin&#8221; only when &#8220;End&#8221; is the last string in a line and &#8220;Begin&#8221; is the first string in the next line</td></tr><tr><td>Match any word character</td><td>\w</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">a\wd</span></code> matches &#8220;add&#8221; and &#8220;a1d&#8221; but not &#8220;a d&#8221;</td></tr><tr><td>Match any whitespace character</td><td>\s</td><td><code><span class="has-inline-color has-vivid-cyan-blue-color">Public\sInterface</span></code> matches the phrase &#8220;Public Interface&#8221;</td></tr><tr><td>Match any decimal digit character</td><td>\d</td><td><span class="has-inline-color has-vivid-cyan-blue-color"><code>\d</code> </span>matches &#8220;4&#8221; and &#8220;0&#8221; in &#8220;wd40&#8221;</td></tr><tr><td>Decimal digit character</td><td>\(?</td><td><span class="has-inline-color has-vivid-cyan-blue-color">\(?</span> Match zero or one literal &#8220;(&#8221; character.</td></tr><tr><td>Decimal digit character</td><td>[\s-]</td><td><span class="has-inline-color has-vivid-cyan-blue-color">[\s-]</span> Match a hyphen or a white-space character.</td></tr><tr><td>Decimal digit character</td><td>(\(?\d{3}\)?[\s-])?</td><td><span class="has-inline-color has-vivid-cyan-blue-color">(\(?\d{3}\)?[\s-])?</span> Match an optional opening parenthesis followed by three decimal digits, an optional closing parenthesis, and either a white-space character or a hyphen zero or one time. This is the first capturing group.</td></tr><tr><td>Decimal digit character</td><td>\d{3}-\d{4}</td><td><span class="has-inline-color has-vivid-cyan-blue-color">\d{3}-\d{4}</span> Match three decimal digits followed by a hyphen and four more decimal digits.</td></tr><tr><td>Whitespace character</td><td>\x85</td><td><span class="has-inline-color has-vivid-cyan-blue-color">\x85</span> The ellipsis or NEXT LINE (NEL) character (…), \u0085.</td></tr><tr><td>Whitespace character</td><td>\p{Z}</td><td><span class="has-inline-color has-vivid-cyan-blue-color">\p{Z}</span>  Matches any separator character.</td></tr></tbody></table></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/30-most-popular-regular-expression-tricks-in-visual-studio-code/">30 Most Popular Regular expression Tricks in Visual Studio Code</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/30-most-popular-regular-expression-tricks-in-visual-studio-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
