fixed regex code