A pure regexp solution, although I would use jeroenes solution:
In reply to Re: special regexp by mirod in thread special regexp by alfie