<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
    <title>Online .NET Regex: C# &amp; VB.NET</title>
    <link>http://www.systemtextregularexpressions.com/</link>
    <description>.NET regex tester and debugger. Includes library of regular expressions. Regex.Match, Regex.Relace, Regex.Split.</description>
    <ttl>240</ttl>
    <language>ru</language>
    <copyright>http://www.systemtextregularexpressions.com</copyright>
    <image>
      <url>http://www.systemtextregularexpressions.com/images/regex_rss.jpg</url>
      <link>http://www.systemtextregularexpressions.com</link>
      <title>Online .NET Regex: C# &amp; VB.NET</title>
    </image>
    <item>
      <title>borderlands.wiki add template param</title>
      <link>http://www.systemtextregularexpressions.com/r25/borderlands.wiki-add-template-param</link>
      <guid>http://www.systemtextregularexpressions.com/r25/borderlands.wiki-add-template-param</guid>
      <description>
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/r25/borderlands.wiki-add-template-param"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:58:57 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>If else condition on minus sign</title>
      <link>http://www.systemtextregularexpressions.com/m24/if-else-condition-on-minus-sign</link>
      <guid>http://www.systemtextregularexpressions.com/m24/if-else-condition-on-minus-sign</guid>
      <description>If numbers are negative then length of numbers is 11 otherwise 12
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m24/if-else-condition-on-minus-sign"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Thu, 14 Apr 2016 22:23:59 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Numbers from 0 to 100</title>
      <link>http://www.systemtextregularexpressions.com/m23/numbers-from-0-to-100</link>
      <guid>http://www.systemtextregularexpressions.com/m23/numbers-from-0-to-100</guid>
      <description>Validate numbers from 0 to 100
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m23/numbers-from-0-to-100"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:24:49 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Numbers from 0 to 100</title>
      <link>http://www.systemtextregularexpressions.com/m22/numbers-from-0-to-100</link>
      <guid>http://www.systemtextregularexpressions.com/m22/numbers-from-0-to-100</guid>
      <description>Validate numbers from 0 to 100
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m22/numbers-from-0-to-100"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:24:47 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Regex.Matches, Regular Expression for hexadecimal number</title>
      <link>http://www.systemtextregularexpressions.com/m21/regex.matches-regular-expression-for-hexadecimal-number</link>
      <guid>http://www.systemtextregularexpressions.com/m21/regex.matches-regular-expression-for-hexadecimal-number</guid>
      <description>Matches expression starting with a 0, following by either a lower or uppercase x, followed by one or more characters in the ranges 0-9, or a-f, or A-F.
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m21/regex.matches-regular-expression-for-hexadecimal-number"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Fri, 14 Aug 2015 13:07:13 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Remove &amp;quot;Style&amp;quot; attribute from HTML tags</title>
      <link>http://www.systemtextregularexpressions.com/r20/remove-style-attribute-from-html-tags</link>
      <guid>http://www.systemtextregularexpressions.com/r20/remove-style-attribute-from-html-tags</guid>
      <description>Remove all "style" attributes from HTML text. 
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/r20/remove-style-attribute-from-html-tags"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:47:50 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>XML file parsing with .NET Regex.Match</title>
      <link>http://www.systemtextregularexpressions.com/m19/xml-file-parsing-with-.net-regex.match</link>
      <guid>http://www.systemtextregularexpressions.com/m19/xml-file-parsing-with-.net-regex.match</guid>
      <description>You can do this via regex or xpath, depending on the complexity of the xml. 
If you want to use regular expressions, you'd probably want to do something like this:
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m19/xml-file-parsing-with-.net-regex.match"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:14:43 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Split string to get Date and text</title>
      <link>http://www.systemtextregularexpressions.com/s18/split-string-to-get-date-and-text</link>
      <guid>http://www.systemtextregularexpressions.com/s18/split-string-to-get-date-and-text</guid>
      <description>I have to process text file like that:

text 01/01/1970 text 02/01/1970 ... etc.

I want the output to be the following data: according to the docs, wrapping the string you're splitting on in () (making it a capture group) will result in these captures being included in the array.

&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/s18/split-string-to-get-date-and-text"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Wed, 12 Aug 2015 16:38:43 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>IP Address (IPv4) Regex .NET</title>
      <link>http://www.systemtextregularexpressions.com/m17/ip-address-ipv4-regex-.net</link>
      <guid>http://www.systemtextregularexpressions.com/m17/ip-address-ipv4-regex-.net</guid>
      <description>Regular expressions are very commonly used by any developer no matter what language he's writing his program. Today I'll show the most useful Regex that sooner or later you will need them. For c# or vb.net. You want to check whether a certain string represents a valid IPv4 address in 255.255.255.255 notation. Optionally, you want to convert this address into a 32-bit integer.
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m17/ip-address-ipv4-regex-.net"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Tue, 28 Jul 2015 11:40:12 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Regular Expression to match every new line character (\n) inside a text block (content block)</title>
      <link>http://www.systemtextregularexpressions.com/m16/regular-expression-to-match-every-new-line-character-n-inside-a-text-block-content-block</link>
      <guid>http://www.systemtextregularexpressions.com/m16/regular-expression-to-match-every-new-line-character-n-inside-a-text-block-content-block</guid>
      <description>I'm looking for a regular expression to match every new line character (\n) inside a XML tag which is &lt;content&gt;, or inside any tag which is inside that &lt;content&gt; tag, for example: &lt;blog&gt;bla bla&lt;/blog&gt;&lt;content&gt;1 \n 2 \n 3&lt;/content&gt;
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m16/regular-expression-to-match-every-new-line-character-n-inside-a-text-block-content-block"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 16:21:02 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Regular expression to match C #include file</title>
      <link>http://www.systemtextregularexpressions.com/m15/regular-expression-to-match-c-include-file</link>
      <guid>http://www.systemtextregularexpressions.com/m15/regular-expression-to-match-c-include-file</guid>
      <description>^\s*\#include\s+["&lt;]([^"&gt;]+)*["&gt;]

You then want to look at the first capture group when you get a match. You don't say what language you're using, the factor you mention regcomp() leads me to believe that you're using POSIX regex library in C. If that's right, then you want to use the regexec function and use the nmatch and pmatch parameters to get the first capture group.
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m15/regular-expression-to-match-c-include-file"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 16:16:57 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>How do I replace multiple spaces with a single space?</title>
      <link>http://www.systemtextregularexpressions.com/r14/how-do-i-replace-multiple-spaces-with-a-single-space</link>
      <guid>http://www.systemtextregularexpressions.com/r14/how-do-i-replace-multiple-spaces-with-a-single-space</guid>
      <description>Replace multiple spaces example
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/r14/how-do-i-replace-multiple-spaces-with-a-single-space"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 16:10:18 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Validate numbers</title>
      <link>http://www.systemtextregularexpressions.com/m13/validate-numbers</link>
      <guid>http://www.systemtextregularexpressions.com/m13/validate-numbers</guid>
      <description>If Possible, Don't Use Regex To Validate Numbers. If at all possible, use your language. There may be functions to help you determine if the value contained by a string is a valid number. That being said, if you're accepting a variety of formats (commas, etc.) you may not have a choice. 
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m13/validate-numbers"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 16:07:04 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Get only Arabic digits</title>
      <link>http://www.systemtextregularexpressions.com/m12/get-only-arabic-digits</link>
      <guid>http://www.systemtextregularexpressions.com/m12/get-only-arabic-digits</guid>
      <description>Use ([0-9]+) if you need to match more than one digit (only Arabic numbers!).
Use (\d+) if you need all digits (all unicode digits).
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m12/get-only-arabic-digits"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 16:00:33 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Remove all non alphanumeric characters from a string except dash &amp;amp; space symbol</title>
      <link>http://www.systemtextregularexpressions.com/r11/remove-all-non-alphanumeric-characters-from-a-string-except-dash-space-symbol</link>
      <guid>http://www.systemtextregularexpressions.com/r11/remove-all-non-alphanumeric-characters-from-a-string-except-dash-space-symbol</guid>
      <description>Replace this Regex with an empty string + Compiled flag
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/r11/remove-all-non-alphanumeric-characters-from-a-string-except-dash-space-symbol"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 15:52:40 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Get IP address - simple non capturing example</title>
      <link>http://www.systemtextregularexpressions.com/m10/get-ip-address-simple-non-capturing-example</link>
      <guid>http://www.systemtextregularexpressions.com/m10/get-ip-address-simple-non-capturing-example</guid>
      <description>?: is used when you want to group an expression, but you do not want to save it as a matched/captured portion of the string.

An example would be something to match an IP address: 
(?:\d{1,3}\.){3}\d{1,3}

Note that I don't care about saving the first 3 octets, but the (?:...) grouping allows me to shorten the regex without incurring the overhead of capturing and storing a match. 
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m10/get-ip-address-simple-non-capturing-example"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 15:29:13 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>How to get numbers 1st, 2nd, 3rd, 4th from text</title>
      <link>http://www.systemtextregularexpressions.com/m9/how-to-get-numbers-1st-2nd-3rd-4th-from-text</link>
      <guid>http://www.systemtextregularexpressions.com/m9/how-to-get-numbers-1st-2nd-3rd-4th-from-text</guid>
      <description>You can use capturing groups to organize and parse an expression. A non-capturing group has the first benefit, but doesn't have the overhead of the second. You can still say a non-capturing group is optional, for example.

Say you want to match numeric text, but some numbers could be written as 1st, 2nd, 3rd, 4th... If you want to capture the numeric part, but not the (optional) suffix you can use a non-capturing group.

([0-9]+)(?:st|nd|rd|th)?

That will match numbers in the form 1, 2, 3... or in the form 1st, 2nd, 3rd,... but it will only capture the numeric part.
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m9/how-to-get-numbers-1st-2nd-3rd-4th-from-text"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 15:26:19 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Simple example - non capturing group</title>
      <link>http://www.systemtextregularexpressions.com/m8/simple-example-non-capturing-group</link>
      <guid>http://www.systemtextregularexpressions.com/m8/simple-example-non-capturing-group</guid>
      <description>If I apply the regex below over it: 
(http|ftp)://([^/\r\n]+)(/[^\r\n]*)? 

I would get the following result:
Match "http://stackoverflow.com/"
     Group 1: "http"
     Group 2: "stackoverflow.com"
     Group 3: "/"

But I don't care about the protocol - I just want the host and path of the URL. So, I change the regex to include the non-capturing group (?:):
(?:http|ftp)://([^/\r\n]+)(/[^\r\n]*)?

Now, my result looks like this:

Match "http://stackoverflow.com/"
     Group 1: "stackoverflow.com"
     Group 2: "/"
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m8/simple-example-non-capturing-group"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 15:23:20 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Regex - \d is less efficient than [0-9] - get ALL Unicode digits</title>
      <link>http://www.systemtextregularexpressions.com/m7/regex-d-is-less-efficient-than-09-get-all-unicode-digits</link>
      <guid>http://www.systemtextregularexpressions.com/m7/regex-d-is-less-efficient-than-09-get-all-unicode-digits</guid>
      <description>\d checks all Unicode digits, while [0-9] is limited to these 10 characters. For example, Persian digits, ?????????, are an example of Unicode digits which are matched with \d, but not [0-9]. [0-9] isn't equivalent to \d. [0-9] matches only 0123456789 characters, while \d matches [0-9] and other digit characters, for example Eastern Arabic numerals ٠١٢٣٤٥٦٧٨٩
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m7/regex-d-is-less-efficient-than-09-get-all-unicode-digits"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sun, 12 Jul 2015 14:34:00 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Splitting Link using RegEx</title>
      <link>http://www.systemtextregularexpressions.com/s6/splitting-link-using-regex</link>
      <guid>http://www.systemtextregularexpressions.com/s6/splitting-link-using-regex</guid>
      <description>i want to find category from the link. I am breaking the link into array using Regex.
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/s6/splitting-link-using-regex"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Tue, 31 Mar 2015 17:40:43 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Replace and named capturing group example</title>
      <link>http://www.systemtextregularexpressions.com/r5/replace-and-named-capturing-group-example</link>
      <guid>http://www.systemtextregularexpressions.com/r5/replace-and-named-capturing-group-example</guid>
      <description>Nearly all modern regular expression engines support numbered capturing groups and numbered backreferences. Long regular expressions with lots of groups and backreferences may be hard to read. They can be particularly difficult to maintain as adding or removing a capturing group in the middle of the regex upsets the numbers of all the groups that follow the added or removed group.
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/r5/replace-and-named-capturing-group-example"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Mon, 30 Mar 2015 02:35:04 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Simple Regex.Split sample - remove digits</title>
      <link>http://www.systemtextregularexpressions.com/s4/simple-regex.split-sample-remove-digits</link>
      <guid>http://www.systemtextregularexpressions.com/s4/simple-regex.split-sample-remove-digits</guid>
      <description>User \d+ for remove digits and \D+ for remove text.
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/s4/simple-regex.split-sample-remove-digits"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Mon, 30 Mar 2015 00:45:18 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Simple Regex.Replace sample - add for word gmail.com</title>
      <link>http://www.systemtextregularexpressions.com/r3/simple-regex.replace-sample-add-for-word-gmail.com</link>
      <guid>http://www.systemtextregularexpressions.com/r3/simple-regex.replace-sample-add-for-word-gmail.com</guid>
      <description>From MSDN:
Regex.Replace processes text replacements. It handles simple replacements and more complex ones. 
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/r3/simple-regex.replace-sample-add-for-word-gmail.com"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Mon, 30 Mar 2015 00:39:02 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Regular expression to extract the year (1900 - 2099) from a string</title>
      <link>http://www.systemtextregularexpressions.com/m2/regular-expression-to-extract-the-year-1900-2099-from-a-string</link>
      <guid>http://www.systemtextregularexpressions.com/m2/regular-expression-to-extract-the-year-1900-2099-from-a-string</guid>
      <description>Getting year from text.
If you want validate textbox value - use this pattern with "^" and "$":

^((19|20)\d{2})$
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m2/regular-expression-to-extract-the-year-1900-2099-from-a-string"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Sat, 28 Mar 2015 16:38:20 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
    <item>
      <title>Get all HTML tags from page</title>
      <link>http://www.systemtextregularexpressions.com/m1/get-all-html-tags-from-page</link>
      <guid>http://www.systemtextregularexpressions.com/m1/get-all-html-tags-from-page</guid>
      <description>Using a RegularExpression to match web (HTML code).
&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.systemtextregularexpressions.com/m1/get-all-html-tags-from-page"&gt;.NET Regex online&lt;/a&gt;</description>
      <pubDate>Fri, 27 Mar 2015 16:21:44 GMT</pubDate>
      <enclosure url="http://www.systemtextregularexpressions.com/images/regex_rss.jpg" type="image/jpeg" />
    </item>
  </channel>
</rss>