Tagged with regex

Back referencing in javascript regular expressions

I’ve used regular expressions to do find and replace Javascript before, but I’ve never managed to do the thing where you can take part of the string that has been matched and use it in the replace string. It turns out the piece of the puzzle I needed to find was something called back references. [...]
Published in Javascript on Thursday, July 21st, 2005

Regular expressions in C#

Learnt something new today from Merak on the UK Microsoft web developer’s list. One of my early problems when writing regular expressions in C# was that I didn’t realise that is actually an escape character when used in a string in C#. So when I wanted to write an expression like this: /d/ (which means [...]
Published in ASP.NET on Tuesday, October 19th, 2004