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"
In reply to Re: How do i get string between
by metaperl
in thread How do i get string between
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |