Matt Taylor wrote:I want to remove all words containing "ample" whether they are in the beginning, middle or end of a sentence.
My regex is [.ample] but it is not working
Unsurprising.
Do you know what the regex "
[.ample]" actually does (or matches)?
My suggestion: Read a good tutorial. I've generally found
this site pretty good.
Alternatively, there is a summary of
Java regex expressions in the
Pattern class docs, but it doesn't provide much context.
Regexes are NOT simple, so you can't expect to simply write one out and expect it to work.
HIH
Winston