
Jeff29
Novice
Dec 14, 2010, 6:37 PM
Post #8 of 11
(18767 views)
|
Re: [FishMonger] Help regarding regex
[In reply to]
|
Can't Post
|
|
Hi Fishmonger, The only difference is the input and I am using perl 5.6.1 $update_p4filelog contains the following data,your code fails with this input,actually I created a sample script below,it gives the same warning message even with the earlier stated input. //depot/asic/msmshared/users/QTVOEMDrops/7600/3555473R/qtv/player/audioplayer/audiocmx.cpp ... #2 change 1548905 edit on 2010/12/09 by c_krisri@C_KRISRIXP (ktext) 'Audio loss when doing nultiple ' ... #1 change 1548876 branch on 2010/12/09 by c_krisri@C_KRISRIXP (ktext) 'Branching for orphan release fo' ... ... branch from //source/tools/perl/mm/player/nov/rel/1.1/src/file.cpp#1,#8
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my $update_p4filelog; $update_p4filelog="... ... branch from //source/tools/perl/mm/player/nov/rel/1.1/src/file.cpp#1,#8"; print "$update_p4filelog\n"; my $update_base_branched_p4path = $update_p4filelog = ~ /branch from (.*\/.*)(?=#\d+,)?#(\d+)$/; print "$update_base_branched_p4path\n";
(This post was edited by Jeff29 on Dec 14, 2010, 6:49 PM)
|