regex - Java - Find words that do not come after a full stop -
I have a large text that I want to find the term that starts with a capital letter inside it but not later There is a complete stop, eg:
This is a common example. Please remove the capital word from it.
In the removed words, there should not be a complete stop in front of them, even if it is in a new line. " , The word " stop ".
The word " please " & amp; " " should be ignored.
I know that capitalized words are " [AZ] {1} [az] * " of the index, but how to add the requested status to this query? You can use this regex:
Believing that there is a white space after completing a full space.
If this assumption can not be made and there is no multiple or no white space after re-use, use this regex:
. \ S * [AZ] | ([AZ] W *) and captured group # 1
Comments
Post a Comment