in reply to Regular Expression from Hell

I think you want /\d{4}/. You can use either the + modifier or {} to indicate quantities; there's no need for both.