my $s="TARGET=toto"; my ($word)= ($s=~/TARGET\s*=\s*(\w+)/); print "word: $word\n";'
But you should really read the doc (perldoc perlre) or books like the Camel if you know that little and want to use Perl.
In reply to Re: Get string for a word in a file after some specific pattern compare
by mirod
in thread Get string for a word in a file after some specific pattern compare
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |