better regex rules