Test, validate and match regular expressions
This regex matches ARK (Archival Resource Key) identifiers, optionally prefixed with a slash and followed by a slash or space, then capturing any URI-compatible characters. It is useful for extracting or validating ARK URLs from text, such as persistent identifiers in bibliographic records or digital archives. The pattern handles both 'ark:/' and 'ark:' formats.