updated docs with comments about new regex callback feature
added example of regex callback feature
added support for regex based callbacks