in reply to Re:regular expression by funky monk
in thread Regular expreesion for extraction of words
I want in separate arrays.
o/p:-(1st array)$_ = '((transcription AND factor)NOT(control OR regulat) AND (TATA OR +TBP) NOT (BLOOD AND marrow))'; my @caps = m/NOT # "NOT" \s* # spaces? ( # start capturing \( # "(" [^)]+ # some not ")"s \) # ")" ) # end capture /xg; print join "\n", @caps;
|
|---|