the regex of course should vary based on precisely what you'll need to match, this is an example.perl -MData::Dumper -le'$_="a = 1, b = 2"; my %h = /(\S+) = (\d+)/g; p +rint Dumper \%h' $VAR1 = { 'a' => '1', 'b' => '2' };
perl -e"\$_=qq/nwdd\x7F^n\x7Flm{{llql0}qs\x14/;s/./chr(ord$&^30)/ge;print"
In reply to Re: extract data from line
by pizza_milkshake
in thread extract data from line
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |