Removed some abstraction from pn_find_matches() in order to make it more flexible
Added comments to regex patterns for clarity