in reply to Re: RE greedinessin thread RE greediness
/(a)(?=(.*?)(?:b=(\w)))?/ [download]
/(a)(.*?)(?=b=(\w)|\z)/ [download]