Profile

Achievement

first submission:submitting first snipplet

adrianparr's Recent SnippetsTagged regexp



« Prev 1 Next »
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.
0 2303 posted 15 years ago by adrianparr
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.
0 2470 posted 15 years ago by adrianparr
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.
1 2289 posted 16 years ago by adrianparr
This code separates out the Flash Player Platform, Major Version number and Minor Version numbers.
0 2068 posted 16 years ago by adrianparr
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.
0 2124 posted 16 years ago by adrianparr
Grant Skinner's RegExr: Online Regular Expression Testing Tool is very handy for checking your regular expressions. http://www.gskinner.com/RegExr/
0 3032 posted 16 years ago by adrianparr
« Prev 1 Next »