i am trying a regex to extract the content between !
and |thumbnail!
.
I am using [^&]*(!)[^&]*(|thumbnail!)[^&]*
to get the content. My pattern is:
Pattern p = Pattern.compile("[^&]*(!)[^&]*(|thumbnail!)[^&]*)",Pattern.DOTALL);
The text can contain any characters including returns, newline and so on. Please assist how I can extract the content. Thanks
!Silhouette analysis.png|thumbnail!
. could you please help? – Kannan Lg Nov 21 '16 at 08:22