Thursday, 8 August 2013

How to split the string with bullets(All types)using regex in java

How to split the string with bullets(All types)using regex in java

Below is my text
Welcome to java programming 1) Oops concepts a) Encapsulation A)
Abstraction I) Inheritance • Polymorphism
I want to split the text based on below pattern and remove the bullets
1)any bullet 1)I)a)A)•
2)followed by space
3)followed by uppercase word
So i want to generate following result
Welcome to java programming
Oops concepts.
Encapsulation.
Abstraction.
Inheritance.
Polymorphism.
Please suggest me how to do this
Thanks

No comments:

Post a Comment