An hour. That includes turning on the computer, getting coffee, getting distracted by a porn flick, and having two cigarette breaks.
I suppose it could be done in 5 minutes, but then the programmer would miss out on a cup of coffee, two cigarettes and a decent porn scene.
__________________
/(bb|[^b]{2})/
|