my ($result)= m{ FIXED (.*?) FIXED }x;
Just to make sure I used a non-greedy match (the ? makes the * match as few characters as possible). That won't make a difference until more than 2 'FIXED' strings are in one line
In reply to Re: Get middle word
by jethro
in thread Get middle word
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |