$line = 'Iteration {Applied Field} A {Total Energy} Mx F G {Third + test line}'; print "$&\n" while $line=~s/(?<={)[\w\s]+(?=})|\w+//; Iteration Applied Field A Total Energy Mx F G Third test line
In reply to Re: Splitting string using two overlapping patterns
by Lennotoecom
in thread Splitting string using two overlapping patterns
by kpr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |