org.apache.tools.ant.filters
Class TokenFilter.ReplaceRegex
- TokenFilter
- ChainableReader, TokenFilter.Filter
public static class TokenFilter.ReplaceRegex
filter to replace regex.
filter
public String filter(String line)
- filter in interface TokenFilter.Filter
line
- the string to modify
- the modified string
setFlags
public void setFlags(String flags)
flags
- the regex flags
setPattern
public void setPattern(String from)
the from attribute
from
- the regex string
setReplace
public void setReplace(String to)
the to attribute
to
- the replacement string
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.