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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -