Here is another way to do it:
use strict; use warnings; my $item1 = 'this is a test /test123?'; my ($content) = $item1 =~ m{ / (.*) \? }x; print "$content\n" if defined $content;
In reply to Re: How do i get string between
by toolic
in thread How do i get string between
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |