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 ;




The mantra of every experienced web application developer is the same: thou shalt separate business logic from display. Ironically, almost all template engines allow violation of this separation principle, which is the very impetus for HTML template engine development.

-- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"