RegEx/StartsWithCapture.regex.txt

# Matches if the string starts with a named capture, and captures the FirstCaptureName
\A\s{0,} # The start of the string and trailing whitespace
(?:\(\?[-+\w]+\)){0,} # Match but do not capture any optional modifiers.
(?:\(\?\<) # The open capture tag
(?<FirstCaptureName>\w+) # The name of the first capture
(?:\>) # The close capture tag