improve anonymous regex