in reply to Re^5: Regex to grab data after the work "branch from"
in thread Regex to grab data after the work "branch from"
I actually want to make the "#\d+," part optional in the regex,so I changed it to [#\d+,]?,it served part of my purpose,it became optional but I want to stop it from printing.how do i do that?
($path, $ver) = $update_p4filelog =~ /branch from (.*\/.*)[#\d+,]?(#\d ++)$/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Regex to grab data after the work "branch from"
by Anonymous Monk on Dec 15, 2010 at 01:27 UTC | |
by perl_mystery (Beadle) on Dec 15, 2010 at 01:57 UTC | |
by Anonymous Monk on Dec 15, 2010 at 02:05 UTC | |
by Anonymous Monk on Dec 15, 2010 at 02:27 UTC | |
by Anonyrnous Monk (Hermit) on Dec 15, 2010 at 03:03 UTC | |
by perl_mystery (Beadle) on Dec 15, 2010 at 03:53 UTC |