in reply to Re:regular expression by funky monk
in thread Regular expreesion for extraction of words
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.
|
|---|