How can i replace String AXA || BXB && CXC || BXB
to AXA OR BXB && CXC OR BXB
?
i tried
expression = "AXA || BXB && CXC || BXB";
expression = expression.replaceAll("||", " OR ");
But this doesnt provide desired result ie AXA OR BXB && CXC OR BXB