It looks like a couple of these local variables are misnamed (`regex_handler` vs `handler`, `value.source` vs (I'm assuming) `range`). Also, should the code example be indented at all?