Ant regex replace without leaving blank lines -
I am using that regular expression in which to change rows -foo
:
^. * (- foo \ b). * $
After the replacement, there is a bunch of empty blank rows where the lines were originally present. How can I change this to remove the line instead of leaving a blank line?
The context that I am doing is an ant script and if it helps, then the whole line is:
& lt; Replaceregexp file = "..." match = "^. * (- foo \ b). * $" Replace = "" byline = "true" /> Disable the line by line processing and replace the regular expression to include line separators, replace
Every event with a new line.
Comments
Post a Comment