d.  If it is
    a callable, it's passed the match object and must return
    a replacement string to be used.