awohld has asked for the wisdom of the Perl Monks concerning the following question:
And I need to get the:oCMenu.makeMenu('m41','m40','Periodic Reports','index.cfm?openaction=f +ile_archive.view&CONTENT_ID=BF764E84-ED11-EC57-40672E520082E823','',1 +25,20)
string out of there.index.cfm?openaction=file_archive.view&CONTENT_ID=BF764E84-ED11-EC57-4 +0672E520082E823
I built the look behind to start the match with Periodic Reports'.' and end with a '"index.cfm?openaction=file_archive.view&CONTENT_ID=BF764E84-ED11-EC57- +40672E520082E823".
#!/usr/bin/perl -w use strict; my $string = qq{oCMenu.makeMenu('m40','','Files','','',100,20) oCMenu. +makeMenu('m41','m40','Periodic Reports','index.cfm?openaction=file_ar +chive.view&CONTENT_ID=BF764E84-ED11-EC57-40672E520082E823','',125,20) + oCMenu.makeMenu('m53','m40','Reference Documents','index.cfm?openact +ion=file_archive.view&CONTENT_ID=BF76E870-E7CC-515F-D4D5C3D4A210BB9A' +,'',125,20)}; $string =~ /Periodic Reports','(?<!.*'$)/; # Want to see index.cfm?openaction=file_archive.view&CONTENT_ID=BF764E +84-ED11-EC57-40672E520082E823 here print $&;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RegEx Help - Look Behind
by McDarren (Abbot) on Dec 03, 2005 at 06:03 UTC | |
|
Re: RegEx Help - Look Behind
by prasadbabu (Prior) on Dec 03, 2005 at 06:00 UTC | |
|
Re: RegEx Help - Look Behind
by serf (Chaplain) on Dec 03, 2005 at 08:21 UTC | |
by dcd (Scribe) on Dec 03, 2005 at 16:39 UTC | |
|
Re: RegEx Help - Look Behind
by bart (Canon) on Dec 03, 2005 at 12:57 UTC | |
|
Re: RegEx Help - Look Behind
by TedPride (Priest) on Dec 03, 2005 at 12:52 UTC |