in reply to Extract words from brackets

Perhaps you need to take two steps back and describe the larger picture? It seems likely that you are trying to parse an expression. If that is the case then parsing out the words is the smallest part of the problem.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Extract words from brackets
by Archana (Initiate) on Jul 20, 2007 at 03:18 UTC
    Hi, Yes i am parsing the expression but if many brackets are there say for eg:-(((A AND B) AND (C OR D)NOT (E AND F))) Then how do i proceed to extract the contents and search for the words?