Java regex to convert n't into not
I am looking for a java regular expression to replace any string of the
pattern, (a-z)+n't (word) to not_word
For ex:
"doesn't like" to "not_like"
"I don't like" to "i not_like"
"I don't like having dinner now" to "I not_like having dinner now"
I tried many things without success.
No comments:
Post a Comment