Using a regex pattern to find revision numbers from a svn merge

Posted by zyzy on Stack Overflow See other posts from Stack Overflow or by zyzy
Published on 2010-05-26T17:09:24Z Indexed on 2010/05/26 17:11 UTC
Read the original article Hit count: 172

Filed under:
|
|
|
|
svn diff -rXX:HEAD

Will give me a format like this, if there has been a merge between those revisions:

Merged /<branch>:rXXX,XXX-XXX
or
Merged /<branch>:rXXX

I'm not very familiar with regex and am trying to put together a pattern which will match all the numbers (merged revision numbers) AFTER matching the "Merged /branch:r" part.

So far I have this to match the first part: [Mm]erged.*[a-zA-Z]:r

Thanks in adv. for the help :)

© Stack Overflow or respective owner

Related posts about regex

Related posts about svn