I'm given a txt file with lots of </sub>
symbols. For example,
Influence of Zn on the photoluminescence of colloidal (AgIn)<sub>x</sub>Zn<sub>2(1-x)</sub>S<sub>2</sub> nanocrystals.
Now I'm trying to use regex to extract the information above to txt file, but my ideal output is
Influence of Zn on the photoluminescence of colloidal (AgIn)xZn2(1-x)S2 nanocrystals
My current code can only extract the information with lots of <sub>
, how to get the ideal output?