perl_mystery has asked for the wisdom of the Perl Monks concerning the following question:
Really exhausting day,am not able to think on how to achieve the below.Appreciate any help.Thanks
I have a variable "$p4filelog" which has the below data,now
1. I want to match only the data after the word "branch from" in the below data,in this case just match"//source/qcom/qct/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#1,#8"
2.From "//source/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#1,#8",remove "#1,",finally the output should be "//source/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#8"
p4filelog data below
//depot/asic/msmshared/users/QTVOEMDrops/qtv/player/audioplayer/file.cpp
... #2 change 1548905 edit on 2010/12/09 by sri@SRIXP (ktext) 'Audio loss when doing nultiple '
... #1 change 1548876 branch on 2010/12/09 by sri@SRIXP (ktext) 'Branching for orphan release fo'
... ... branch from //source/qcom/qct/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#1,#8
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex to grab data after the work "branch from"
by Corion (Patriarch) on Dec 13, 2010 at 09:28 UTC |