Magp.ie

A nest for the random, shiny, online tidbits I stumple across…

  • HOME
  • Code
  • Guides
  • Shortcuts

Posts Tagged ‘ regular expression ’

JavaScript Tricks; URLEncode, Foreach and Remove last character

  • May 13th, 2010
  • Posted in Code

I have come across some neat (if not mind blowing) tricks with JavaScript recently. Firstly, I needed JavaScript code that copied PHP’s urlencode(). This function returns an encoded string where all non-alphanumeric characters except - _ . are replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) [ READ MORE ]

Regular Expressions

  • March 8th, 2010
  • Posted in Code

First off, regular expressions are great. They are a handy quick way to validate or parse data and you can use them in almost all languages. But of all things, I forget neat regex’s and in fairness they are a pita to recall as the syntax is plain nutty. This is where it ends. I [ READ MORE ]

Pages

  • About me…

Subscribe to this blog by email.

Top Rated

Content

aliases auto-select character set cookie cURL DOM storage encoding ExternalInterface Flash format xml HTTPS Authentication javascript jQuery Local Shared Objects LSO Mac OSX Microsoft SQL Server MySQL parse assignment value php plugin polldaddy polls Port forwarding pre tags PuTTY ratings regex regular expression revert revision rollback Service Broker SSH SVN terminal textwrangler tips UNIX Script UTF8 validate email validate url wordpress xkcd XML

Poll

Blog at WordPress.com. | Theme: Monochrome by mono-lab.