Hi,
If extraction of contents in inthe inner paranthesis is your only concern, try
$str = "((A AND B) OR (C AND D) NOT E)"; print "$1\n" while( $str =~ /\(([\w\s]+)\)/g);
this may not be the best solution, but this is the first solution I have.
Cheers !
--VC
There are three sides to any argument.....
your side, my side and the right side.
In reply to Re: Extract words from brackets
by atemon
in thread Extract words from brackets
by Archana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |