in reply to matchin a string inside of another string
I may be missing the point here but would something like this work?
Basically I'm getting all the stuff between the tokens, and splitting that on whitespace, to produce the @stuff array.$content= "bla foo bar letters stuff qwerty"; if ($content =~ /bla (.*?)qwerty/){ print "matched!\n"; @stuff = split /\s+/, $1; print "The stuff ".join(" ", @stuff)."\n" if @stuff; }
In Section
Seekers of Perl Wisdom