Ah, I hadn't realised you wanted that:( You won't get two arrays back from one match. I'd get everything in to a single array by replacing NOT with (?:NOT|AND|OR), and then use grep to split it up how I wanted.
Here's some tips on how to format your posts correctly.
Update
You should tell us exactly what output you want from the string you gave.
In reply to Re^2: regular expression by funky monk
by FunkyMonk
in thread Regular expreesion for extraction of words
by Archana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |