In this post, we will see how to resolve Java split (?=pattern) not longest match
Question:
Best Answer:
I would use a regex match all approach here, rather than splitting:If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com