Thanks for the link. I was doing a super search on dispatch table and found this
link.
This was quite close to what I wanted. A regex pattern with an associated action. And I read the link above and people were giving positive reviews on how this 'type' of dispatch table is being used.