print "Found '$1'" if 'one two three' =~ 'one(.*)three'; Found ' two '