Thanks Luciddream,
this is still not quite what i want though. Maybe i'm not clear enough, here an exampl to show what i want:
suppose i got this string "this is an example ... help me.". I would like to extract whatever phrase is between "example" and "help". Please note that I do not know what's between these 2 words but I'll like to extract whatever's between them.
[tt]$string =~ m~example(.*)help~;
$phrase = $1;[/tt] "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.