ant « replace « Java Regex Q&A

Home
Java Regex Q&A
1.Development
2.find
3.group
4.Match
5.matcher
6.number
7.Operation
8.parse
9.Pattern
10.replace
11.validation
12.word
Java Regex Q&A » replace » ant 

1. Output newline char in regexp under Java or ANT    stackoverflow.com

I have ant target that invokes replaceregexp task

<target name="regexp.replace">
    <replaceregexp file="${file.temp}"
                  ...

2. how to replace a backslash in some lines of a text in Ant    stackoverflow.com

Using

<replaceregexp byline="true" flags="g" file="${someFIle}"
              match = "[\\]"
            ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.