escape # in regexp to avoid syntax errors in older ruby versions