I want to create a Java regex to find all words that have a single quote inside them. Words examples :
'word'
'Word
'W'ord
'W'or'd
Word'
w'orD
w'o'r'd
I hope i am not missing any case above. Currently i am using this query :
[a-zA-Z]*('{1,})[a-zA-Z]*('{0,})[a-zA-Z]*
But it still fails to grab all the words' cases above. Is there a regular expression to find if a word has one or more single quote ?
Note: In my case i can't use Java methods like String.contains(...). I want it to be a regular expression solution.