I have a text and I want to extract Parentheses of text with regex java.
for example of text:
<p>Now a days, regenerative medicine(1) in stem cell(3) filed
widely <label>attractive(10) by</label> attractive by scientists(4).</p>
I want to extract Parentheses of text if Parentheses no exist between label tags.
for example of extract above text:
(1)
(3)
(4)
it should not extract parentheses between label tags.
i use of regex following :
(<label>){0,1}[(\\w\\W)&&[^[</label>|\\(|\\)]]]*(\\(\\s*[(\\w\\W)&&[^\\(\\)]]+\\))
[(\\w\\W)&&[^[</label>|\\(|\\)]]]*(</label>){0,1}