<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/regex</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 20:45:29 GMT</pubDate>
<item>
<title>(Regular Expression) Regex Leading and Trailing Whitespace - Pavonz</title>
<link>http://snipplr.com/view/70938/regex-leading-and-trailing-whitespace/</link>
<description><![CDATA[ <p>Leading and Trailing Whitespace</p> ]]></description>
<pubDate>Fri, 26 Apr 2013 15:59:40 GMT</pubDate>
<guid>http://snipplr.com/view/70938/regex-leading-and-trailing-whitespace/</guid>
</item>
<item>
<title>(Regular Expression) Remove Non Errors from Logs - gamerzfuse</title>
<link>http://snipplr.com/view/70815/remove-non-errors-from-logs/</link>
<description><![CDATA[ <p>Removes any lines from the file that don't start with "ERROR"</p> ]]></description>
<pubDate>Tue, 16 Apr 2013 23:43:43 GMT</pubDate>
<guid>http://snipplr.com/view/70815/remove-non-errors-from-logs/</guid>
</item>
<item>
<title>(JavaScript) email validation - dreamstarter</title>
<link>http://snipplr.com/view/70726/email-validation/</link>
<description><![CDATA[ <p>Use a regex to check the email address input</p> ]]></description>
<pubDate>Tue, 09 Apr 2013 23:33:35 GMT</pubDate>
<guid>http://snipplr.com/view/70726/email-validation/</guid>
</item>
<item>
<title>(C#) Ektron list based on taxonomy id - dego89</title>
<link>http://snipplr.com/view/70319/ektron-list-based-on-taxonomy-id/</link>
<description><![CDATA[ <p>The following code retrieves a list of content based on a taxonomy id. The list is bound to a repeater that display a preview of the content with a quick link to a content page. The content comes in based on the previous taxonomy id but exposes a content list which can be used gather the html property's. Then I use a regex to take our specific nodes for the preview columns in my table.</p> ]]></description>
<pubDate>Fri, 08 Mar 2013 02:23:00 GMT</pubDate>
<guid>http://snipplr.com/view/70319/ektron-list-based-on-taxonomy-id/</guid>
</item>
<item>
<title>(Regular Expression) Remove comments in code - XtreamIT</title>
<link>http://snipplr.com/view/69755/remove-comments-in-code/</link>
<description><![CDATA[ <p>It removes all standard C-style comments(/* 1-n */) and all single line comments("//"). Greedy matching.</p> ]]></description>
<pubDate>Sat, 02 Feb 2013 01:59:21 GMT</pubDate>
<guid>http://snipplr.com/view/69755/remove-comments-in-code/</guid>
</item>
<item>
<title>(C#) Regular expression : simple strong password - gaserland</title>
<link>http://snipplr.com/view/69596/regular-expression--simple-strong-password/</link>
<description><![CDATA[ <p>ต้องมีอย่างน้อย 8 ตัวอักษร
ต้องมีตัวอักษรอังกฤษตัวเล็ก [a-z] และตัวใหญ่[A-Z] อย่างน้อยอย่างล่ะ 1 ตัว</p> ]]></description>
<pubDate>Wed, 23 Jan 2013 17:21:23 GMT</pubDate>
<guid>http://snipplr.com/view/69596/regular-expression--simple-strong-password/</guid>
</item>
<item>
<title>(Regular Expression) Oracle Regex Strip Tags - geekzspot</title>
<link>http://snipplr.com/view/68963/oracle-regex-strip-tags/</link>
<description><![CDATA[ <p>Regular Expression to strip Tags such as HTML XML</p> ]]></description>
<pubDate>Wed, 05 Dec 2012 08:37:54 GMT</pubDate>
<guid>http://snipplr.com/view/68963/oracle-regex-strip-tags/</guid>
</item>
<item>
<title>(PHP) Regex Clipboard Class (Mini-Template Engine) - halk</title>
<link>http://snipplr.com/view/68633/regex-clipboard-class-minitemplate-engine/</link>
<description><![CDATA[ <p>https://gist.github.com/4098493
(examples of use below the class code)
This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as part of the view.  See example below the code for the format of the snippet file.</p> ]]></description>
<pubDate>Sun, 18 Nov 2012 08:23:12 GMT</pubDate>
<guid>http://snipplr.com/view/68633/regex-clipboard-class-minitemplate-engine/</guid>
</item>
<item>
<title>(Regular Expression) Regular Expression for Matching URLs with or without http(s) - brandonjp</title>
<link>http://snipplr.com/view/68530/regular-expression-for-matching-urls-with-or-without-https/</link>
<description><![CDATA[ <p>thanks to... 
http://gskinner.com/RegExr/
http://daringfireball.net/2010/07/improved_regex_for_matching_urls</p> ]]></description>
<pubDate>Tue, 13 Nov 2012 07:34:18 GMT</pubDate>
<guid>http://snipplr.com/view/68530/regular-expression-for-matching-urls-with-or-without-https/</guid>
</item>
<item>
<title>(PHP) Validate HTML Color (Both HEX &amp;amp; Named)| Regex - STaRDoGG</title>
<link>http://snipplr.com/view/68083/validate-html-color-both-hex--named-regex/</link>
<description><![CDATA[ <p>This function will take a HTML color as a string, and run it through some validation.

If $named (optional): is set to either 1 or TRUE it'll check if it was a named color first, otherwise itll first check for a valid Hex color that include thes hash (#) sign, and then will check for a valid Hex color that doesn't include the hash and add it to the color.

NOTE: If it fails anywhere along the validation, such as an invalid Hex color, no error notice is returned. You may want to add this in yourself, or perhaps return a default color, such as black, if it's needed for your use.</p> ]]></description>
<pubDate>Sat, 03 Nov 2012 04:12:49 GMT</pubDate>
<guid>http://snipplr.com/view/68083/validate-html-color-both-hex--named-regex/</guid>
</item>
<item>
<title>(Bash) Bash pattern matching using extended globbing - symsec</title>
<link>http://snipplr.com/view/67845/bash-pattern-matching-using-extended-globbing/</link>
<description><![CDATA[ <p>Using a (faster) case structure to do bash built-in pattern matching. See [Bash hackers](http://wiki.bash-hackers.org/syntax/pattern) for more information. Thanks to [gnashley](http://www.linuxquestions.org/questions/programming-9/bash-search-for-a-pattern-within-a-string-variable-448022/#post4261310) for the snippet.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 20:07:08 GMT</pubDate>
<guid>http://snipplr.com/view/67845/bash-pattern-matching-using-extended-globbing/</guid>
</item>
<item>
<title>(Bash) Bash exscript to replace word occurrences - symsec</title>
<link>http://snipplr.com/view/67844/bash-exscript-to-replace-word-occurrences/</link>
<description><![CDATA[ <p>As portrayed by the example found in the [Advanced Bash Scripting guide](http://tldp.org/LDP/abs/html/here-docs.html) this demonstrates a few techniques</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 17:51:43 GMT</pubDate>
<guid>http://snipplr.com/view/67844/bash-exscript-to-replace-word-occurrences/</guid>
</item>
<item>
<title>(Bash) Bash exscript to replace word occurrences - symsec</title>
<link>http://snipplr.com/view/67843/bash-exscript-to-replace-word-occurrences/</link>
<description><![CDATA[ <p>As portrayed by the example found in the [Advanced Bash Scripting guide](http://tldp.org/LDP/abs/html/here-docs.html) this demonstrates a few techniques</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 17:51:06 GMT</pubDate>
<guid>http://snipplr.com/view/67843/bash-exscript-to-replace-word-occurrences/</guid>
</item>
<item>
<title>(JavaScript) regex tikrina, ar tik raidės - ptomas</title>
<link>http://snipplr.com/view/66182/regex-tikrina-ar-tik-raids/</link>
<description><![CDATA[ <p>patikrina nurodyto elemento užpildytas reikšmes. Pateikia pranešimą ir grąžina false, jei ne tik raidės.</p> ]]></description>
<pubDate>Tue, 17 Jul 2012 19:43:12 GMT</pubDate>
<guid>http://snipplr.com/view/66182/regex-tikrina-ar-tik-raids/</guid>
</item>
<item>
<title>(Regular Expression) Hexadecimal color regex match - guilhermehn</title>
<link>http://snipplr.com/view/65915/hexadecimal-color-regex-match/</link>
<description><![CDATA[ <p>Regex code to match hexadecimal colors</p> ]]></description>
<pubDate>Tue, 03 Jul 2012 07:04:53 GMT</pubDate>
<guid>http://snipplr.com/view/65915/hexadecimal-color-regex-match/</guid>
</item>
<item>
<title>(PHP) Remove superfluous line breaks between HTML elements. - pumpkinthehead</title>
<link>http://snipplr.com/view/65826/remove-superfluous-line-breaks-between-html-elements/</link>
<description><![CDATA[ <p>A regular expression for removing  and  (case insensitive) between HTML elements if there is no content between the HTML elements.  It was written for fixing extra line spaces created in a WordPress visual editor after the content of the visual editor was returned from the PHP nl2br() method.</p> ]]></description>
<pubDate>Wed, 27 Jun 2012 08:18:51 GMT</pubDate>
<guid>http://snipplr.com/view/65826/remove-superfluous-line-breaks-between-html-elements/</guid>
</item>
<item>
<title>(JavaScript) 10 Digit String to Phone Format - cpres</title>
<link>http://snipplr.com/view/65672/10-digit-string-to-phone-format/</link>
<description><![CDATA[ <p>Formats a 10-digit phone number into a good format (123) 555-1234</p> ]]></description>
<pubDate>Sun, 17 Jun 2012 06:54:16 GMT</pubDate>
<guid>http://snipplr.com/view/65672/10-digit-string-to-phone-format/</guid>
</item>
<item>
<title>(Perl) BBEdit text filter - increment value by one - page_lab</title>
<link>http://snipplr.com/view/64990/bbedit-text-filter--increment-value-by-one/</link>
<description><![CDATA[ <p>Text filter to increment numbers by one with regex in BBEdit (Mac only)</p> ]]></description>
<pubDate>Tue, 22 May 2012 08:49:34 GMT</pubDate>
<guid>http://snipplr.com/view/64990/bbedit-text-filter--increment-value-by-one/</guid>
</item>
<item>
<title>(Apache) .htaccess script to block remote access and allow local ip - aruldave</title>
<link>http://snipplr.com/view/64941/htaccess-script-to-block-remote-access-and-allow-local-ip/</link>
<description><![CDATA[ <p>The below code lets you stop access from the remote IPs excluding your local machine IP. This code can be setup where someone wants to provide an internal access and restricting the external access for the web service. 
-  [Automated Predictive Dialler Software for Call Centres](http://touchstarccs.co.uk/ "Automated Predictive Dialler Software for Call Centres")</p> ]]></description>
<pubDate>Fri, 18 May 2012 20:56:18 GMT</pubDate>
<guid>http://snipplr.com/view/64941/htaccess-script-to-block-remote-access-and-allow-local-ip/</guid>
</item>
<item>
<title>(PHP) PHP Regex - jamessullenriot</title>
<link>http://snipplr.com/view/64912/php-regex/</link>
<description><![CDATA[ <p>Regex to remove special characters</p> ]]></description>
<pubDate>Thu, 17 May 2012 22:58:34 GMT</pubDate>
<guid>http://snipplr.com/view/64912/php-regex/</guid>
</item>
</channel>
</rss>