I need to go through a file and replace all instances where an issue is mentioned using the Github convention #xxx (where xxx is the issue number), with a link to the issue using the Markdown format.
So for example, this:
#143, #99
should be converted into this:
[#143](https://github.com/repo/issues/143), [#99](https://github.com/repo/issues/99)
I've gotten as far as to being able to select all the issues with three digits using:
#..[0-9]
but this leaves out the two or one digits issues (ie: #5 or #23)
Is there a way to generalize the above command to select all issues, no matter how many digits they have?
Once this is done, how can I make the replacement to add a link to each issue?