Using a regular expression (replaceregexp in Ant) how can I match (and then replace) everything from the start of a line, up to and including the last occurrence of a slash?
You can match this:
.*\/
and replace with your text.
DEMO