Assuming you want to discard the {}s:
$str = 'Iteration {Applied Field} {Total Energy} Mx Fx {a} B C D { +E F} G';; print for split '(?:}\s+{|\s+{|}\s+|\s+(?!\S+}))', $str;; Iteration Applied Field Total Energy Mx Fx a B C D E F G
In reply to Re: Splitting string using two overlapping patterns
by BrowserUk
in thread Splitting string using two overlapping patterns
by kpr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |