I needed one place where all of the regex's are located. I got tired of trying to track them down.
^arn:(?P<partition>[^:\n]*):(?P<service>[^:\n]*):(?P<region>[^:\n]*):(?P<account_id>[^:\n]*):(?P<ignore>(?P<resource_type>[^:\/\n]*)[:\/])?(?P<resource>.*)$
^arn:(?<partition>[^:\n]*):(?<service>[^:\n]*):(?<region>[^:\n]*):(?<account_id>[^:\n]*):(?<ignore>(?<resource_type>[^:\/\n]*)[:\/])?(?<resource>.*)$
vpc-[^\s]+
subnet-[^\s]+