<?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/language/actionscript-3/tags/regexp</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 07:42:14 GMT</pubDate>
<item>
<title>(ActionScript 3) AS3 Remove namespace from XML - adrianparr</title>
<link>http://snipplr.com/view/56876/as3-remove-namespace-from-xml/</link>
<description><![CDATA[ <p>If you don't deal with namespaces in XML correctly they can break your parsing in AS3. One way of getting around this is to remove the namespace from the XML a using regular expression.</p> ]]></description>
<pubDate>Wed, 20 Jul 2011 00:29:08 GMT</pubDate>
<guid>http://snipplr.com/view/56876/as3-remove-namespace-from-xml/</guid>
</item>
<item>
<title>(ActionScript 3) Extract domain name with RegExp - hejaaa</title>
<link>http://snipplr.com/view/51619/extract-domain-name-with-regexp/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 Apr 2011 01:54:53 GMT</pubDate>
<guid>http://snipplr.com/view/51619/extract-domain-name-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) Template system (replace items in a string with items from a hash) - mgeduld</title>
<link>http://snipplr.com/view/47454/template-system-replace-items-in-a-string-with-items-from-a-hash/</link>
<description><![CDATA[ <p>This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object).

Example:

var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" };

var template: String = "The %{SPEED} %{ADJECTIVE} fox %{VERB} over the %{ADJECTIVE} dog.";

trace( makeReplacements( template, replacements )  );

//output: The slow green fox slithers over the green dog.</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 03:03:30 GMT</pubDate>
<guid>http://snipplr.com/view/47454/template-system-replace-items-in-a-string-with-items-from-a-hash/</guid>
</item>
<item>
<title>(ActionScript 3) Strip whitespace at the beginning and the end of a string - gandreini</title>
<link>http://snipplr.com/view/47347/strip-whitespace-at-the-beginning-and-the-end-of-a-string/</link>
<description><![CDATA[ <p>This can be useful when you retrieve strings from an XML or script that have whitespaces at the beginning or the end.</p> ]]></description>
<pubDate>Tue, 18 Jan 2011 02:00:41 GMT</pubDate>
<guid>http://snipplr.com/view/47347/strip-whitespace-at-the-beginning-and-the-end-of-a-string/</guid>
</item>
<item>
<title>(ActionScript 3) Validate Calendar Date with RegExp - Activetuts</title>
<link>http://snipplr.com/view/46469/validate-calendar-date-with-regexp/</link>
<description><![CDATA[ <p>From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 12:02:09 GMT</pubDate>
<guid>http://snipplr.com/view/46469/validate-calendar-date-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) Validate Card Number with RegExp - Activetuts</title>
<link>http://snipplr.com/view/46468/validate-card-number-with-regexp/</link>
<description><![CDATA[ <p>From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 12:01:58 GMT</pubDate>
<guid>http://snipplr.com/view/46468/validate-card-number-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) Validate IBAN with RegExp - Activetuts</title>
<link>http://snipplr.com/view/46467/validate-iban-with-regexp/</link>
<description><![CDATA[ <p>From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 11:59:14 GMT</pubDate>
<guid>http://snipplr.com/view/46467/validate-iban-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) Validate ISBN with RegExp - Activetuts</title>
<link>http://snipplr.com/view/46466/validate-isbn-with-regexp/</link>
<description><![CDATA[ <p>From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 11:57:39 GMT</pubDate>
<guid>http://snipplr.com/view/46466/validate-isbn-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) Validate a Phone Number with RegExp - Activetuts</title>
<link>http://snipplr.com/view/46465/validate-a-phone-number-with-regexp/</link>
<description><![CDATA[ <p>From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 11:56:46 GMT</pubDate>
<guid>http://snipplr.com/view/46465/validate-a-phone-number-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) Validate a Web Address with RegExp - Activetuts</title>
<link>http://snipplr.com/view/46464/validate-a-web-address-with-regexp/</link>
<description><![CDATA[ <p>From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 11:56:03 GMT</pubDate>
<guid>http://snipplr.com/view/46464/validate-a-web-address-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) Validate Email Address with RegExp - Activetuts</title>
<link>http://snipplr.com/view/46462/validate-email-address-with-regexp/</link>
<description><![CDATA[ <p>From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 11:51:50 GMT</pubDate>
<guid>http://snipplr.com/view/46462/validate-email-address-with-regexp/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Replace Special XML Characters with Entity Names (Partial Set) - adrianparr</title>
<link>http://snipplr.com/view/45887/as3-replace-special-xml-characters-with-entity-names-partial-set/</link>
<description><![CDATA[ <p>These five characters should be replaced with their HTML entity names before being used in XML, otherwise they may cause the XML to be invalid.</p> ]]></description>
<pubDate>Fri, 17 Dec 2010 23:00:40 GMT</pubDate>
<guid>http://snipplr.com/view/45887/as3-replace-special-xml-characters-with-entity-names-partial-set/</guid>
</item>
<item>
<title>(ActionScript 3) Hex Validation - jfdesgagne</title>
<link>http://snipplr.com/view/40108/hex-validation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 08 Sep 2010 05:01:21 GMT</pubDate>
<guid>http://snipplr.com/view/40108/hex-validation/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Trim a Comma Delimited String (e.g. a list of comma separated keywords entered by a user) - adrianparr</title>
<link>http://snipplr.com/view/40007/as3-trim-a-comma-delimited-string-eg-a-list-of-comma-separated-keywords-entered-by-a-user/</link>
<description><![CDATA[ <p>This function trims a string and removes empty entries in a comma delimited list, removes extra commas from the beginning and end and also remove extra space characters between words.</p> ]]></description>
<pubDate>Sat, 04 Sep 2010 21:38:37 GMT</pubDate>
<guid>http://snipplr.com/view/40007/as3-trim-a-comma-delimited-string-eg-a-list-of-comma-separated-keywords-entered-by-a-user/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Remove Carriage Returns And New Lines Using Regular Expressions - adrianparr</title>
<link>http://snipplr.com/view/37062/as3-remove-carriage-returns-and-new-lines-using-regular-expressions/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 10 Jul 2010 06:17:51 GMT</pubDate>
<guid>http://snipplr.com/view/37062/as3-remove-carriage-returns-and-new-lines-using-regular-expressions/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Get Flash Player Version Number (inc. Major and Minor Numbers) - adrianparr</title>
<link>http://snipplr.com/view/35260/as3-get-flash-player-version-number-inc-major-and-minor-numbers/</link>
<description><![CDATA[ <p>This code separates out the Flash Player Platform, Major Version number and Minor Version numbers.</p> ]]></description>
<pubDate>Thu, 27 May 2010 07:53:27 GMT</pubDate>
<guid>http://snipplr.com/view/35260/as3-get-flash-player-version-number-inc-major-and-minor-numbers/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Trim Whitespace From the Beginning and End of a String - adrianparr</title>
<link>http://snipplr.com/view/34129/as3-trim-whitespace-from-the-beginning-and-end-of-a-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 10 May 2010 09:55:57 GMT</pubDate>
<guid>http://snipplr.com/view/34129/as3-trim-whitespace-from-the-beginning-and-end-of-a-string/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Checks a String to see if it is a Valid Email Format - adrianparr</title>
<link>http://snipplr.com/view/33601/as3-checks-a-string-to-see-if-it-is-a-valid-email-format/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 29 Apr 2010 10:21:59 GMT</pubDate>
<guid>http://snipplr.com/view/33601/as3-checks-a-string-to-see-if-it-is-a-valid-email-format/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Checks and Returns Valid UK Postcode using Regular Expression - adrianparr</title>
<link>http://snipplr.com/view/32540/as3-checks-and-returns-valid-uk-postcode-using-regular-expression/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 21 Apr 2010 05:54:43 GMT</pubDate>
<guid>http://snipplr.com/view/32540/as3-checks-and-returns-valid-uk-postcode-using-regular-expression/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Convert a Forward Slash to URLEncoded Character %2F - adrianparr</title>
<link>http://snipplr.com/view/29840/as3-convert-a-forward-slash-to-urlencoded-character-2f/</link>
<description><![CDATA[ <p>In AS2 forward slashes got url-encoded to %2F when you escaped them. But in AS3 they get ignored and left as they are. In some situations I have found that this can cause problems. So you can do it manually using this regular expression.</p> ]]></description>
<pubDate>Tue, 16 Mar 2010 15:47:15 GMT</pubDate>
<guid>http://snipplr.com/view/29840/as3-convert-a-forward-slash-to-urlencoded-character-2f/</guid>
</item>
</channel>
</rss>