Yurp, or possibly Path::Tiny.
The cake is a lie. The cake is a lie. The cake is a lie.
In reply to Re^2: remove words with regex by Fletch in thread remove words with regex by frank1