Skip to content

Regex Split bug in JScript?

I’ve been messing around with JavaScript quite a bit recently and I came across a ‘bug’ in the Microsoft implementation of the split() method.

Take the following example string (note the two tabs at the end):

var s = “Hello\tHow\tare\tyou\t\t”;

and then run the following to write it out to the screen:

document.writeln(s.split(”\t”));

Well that works as expected, and outputs [...]

Helping out on the Wrox forums

Since I started working as the technical editor for the XSLT 2.0 and XPath 2.0 reference book I thought I’d try my hand at helping out on the Wrox Programmer to Programmer (P2P for short) forums.

When I first started out I was a ‘Starting Member’ but soon progressed to ‘New Member’.

Not long after that I [...]

Official ASP.NET MVC framework - CTP release in ‘next few weeks’

News about the recently previewed Model-View-Controller framework for ASP.Net is that a first look Community Technology Preview is due out in a few weeks.

It will form part of the ASP.Net Futures release, which is a product I had a quick look at recently, and includes some wonderful stuff on Dynamic Forms.

For an overview of what [...]

Top 10 things to know about Visual Studio 2008 and .NET Framework 3.5

Top 10 things to know about Visual Studio 2008 and .NET Framework 3.5

Daniel Moth (’The Moth’) lists 10 very good reasons why I’m looking forward to Visual Studio 2008.

The killer feature for me is still the fact that I can target .Net 2.0, which means I can upgrade straight away from Visual Studio 2005, play [...]

Implementing extension methods to XSLT in .Net

Most XSLT processors contain methods to call custom methods (known as extension methods) written in your favourite programming language. Java XSLT processors allow you to write them in Java, and the old MSXML processor allowed you to write the in VBScript or Javascript.

The new .Net Framework classes XslTransform (or more recently XslCompiledTransform) allows you to [...]