in reply to How do i get string between
my $string = 'this is a test /test123?'; my $start = "\Q/\E"; my $end = "\Q?\E"; my $regexp = qr/$start(.*)$end/; warn $1 if $string =~ $regexp ;
-- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"
|
|---|