I need to break the line where there is a comma, but it depends on where the comma is.
As an example
consider the following:
C=75,user_is_active(A,B),user_is_using_app(A,B),D=78
I would like the String.split() function to separate them as follows:
C=75 user_is_active(A,B) user_using_app(A,B) D=78
I can only think of one thing, but I'm not sure how this would be expressed in a regular expression.
Symbols / words in brackets are always capital. In other words, there will be no situation where I will have user_is_active(a,b) .
Is there any way to do this?
kkudi
source share