Fix regex that generates html for 'new' keyword