$string=~/.*linux.*/; ^^ ^^
Your use of the two patterns .* in this regular expression are purposeless, and they cause the regular expression engine to do things you don't want it to do. You should remove them.
$string =~ m/linux/;
What are you setting the encoding of the input data to?
Jim
In reply to Re: Regular expression to match binary data amoun text data
by Jim
in thread Regular expression to match binary data amoun text data
by hisyc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |