Added a custom identifier option

Added a "custom identifier" option. Similar to the "pattern" option but
abstracts away a RegEx. See the readme for more details.