Is there a way to have the regex for a custom link have a repetition that creates multiple links? For example a commit message could contain:
Case 123, 456: Fix some stuff
And then the regex
/Case (?:(\d),?\s*)+/
Would capture both the 123 and 456. Correct? But I don't see how to make the replacement URL work here so that there are two links.
Neither the documentation for the web UI nor the REST API give much information about how the regular expressions work. They mention having capture groups in the regex, but nothing about repetition. Maybe the regex library being used doesn't support repeated captures.
If this is impossible (which it seems like it might be), is there a better way to handle this particular commit message so both 123 and 456 are links? Certainly this regex
/(\d+)/
or even this one
/(\d{3,})/would work, but that seems excessive and could match things in commit messages where it maybe shouldn't.