http://qs1969.pair.com?node_id=342571


in reply to matchin a string inside of another string

I may be missing the point here but would something like this work?
$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; }
Basically I'm getting all the stuff between the tokens, and splitting that on whitespace, to produce the @stuff array.