in reply to Search and Extract from String

Or simply:

 print $1 if $string =~ /(\w+)[- ]controlled/;

Replies are listed 'Best First'.
Re^2: Search and Extract from String
by madbee (Acolyte) on Jun 29, 2013 at 13:18 UTC

    Thanks, so much! This worked. Saved me tons of lines of code had I gone with my approach