Input:
1.\frac{[a+b]}{xjch}
2.\frac{pqz}{xjch}
Wanted output is
1.[a+b]/(xjch)
2.(pqz)/(xjch)
My regex is:
\\frac\{(.{2,})\}\{(.{2,})\}
if i apply this regex, the output will be,
1.([a+b])/(xjch)
2.(pqz)/(xjch)
But i dont want () in [a+b]. ie if any special character inside the {...}, the round bracket should not come. otherwise, (Without special characters) ,the round bracket should come like (pqz),(xjch).
I want two regex for both 1. and 2. then only i will get wanted output.
Could anyone help me?