in reply to Regex to grab data after the work "branch from"
So, what code have you written?
It helps us to help you better if you show where in your code you have problems.
Also, have you looked at P4? Maybe it has the appropriate wrappers already?