Split the given text based on pattern java
Below is my text
This is my first java Program. I am new to java program. but my program is
successfully running without any. issues. Thanks to all
It should split like
This is my first java Program.
I am new to java program. but my program is successfully running without
any. issues.
Thanks to all.
the regex should take the below pattern
1.dot 2.followed by space 3.followed by capital letter word
I tried this
\\.\\w[A-Z]
\\.\\s\s[A-Z]
\\.(?!\\w)
But failed to get it.
No comments:
Post a Comment