What is ?<>
pattern in javascript regular expression?
Example:
/^github.com\/(?<root>[\w-]+)\/(?<repo>[\w-]+)\/(?<branch>[\w-]+)$/
What is ?<>
pattern in javascript regular expression?
Example:
/^github.com\/(?<root>[\w-]+)\/(?<repo>[\w-]+)\/(?<branch>[\w-]+)$/
(?<>)
specifies a named capture group. Depending on the RegEx engine you're working with this might have different results on the output you're getting, it might not even work at all.
It basically defines the capture group (?<a>)
to be named "a" which will (probably) be returned in your result set.