in reply to RegEx Help - Look Behind
$string =~ /Periodic Reports','(?<!.*'$)/;Just change this to
and now you'll match what's in the single quotes after "Periodic Reports" (etc.).$string =~ /Periodic Reports','(.*?)'/;
If you insist on using lookbehind, use it for what it's for: "Does what I match now follow something looking like this?"
Read it as: "match what's between single quotes, but it has to come after the string "Periodic Reports',".$string =~ /(?<=Periodic Reports',)'(.*?)'/;
|
|---|