fixed regex for interval