added comment to ugly regex