org.apache.tools.ant.filters
Class TokenFilter.ContainsRegex
- TokenFilter
- ChainableReader, TokenFilter.Filter
public static class TokenFilter.ContainsRegex
filter to filter tokens matching regular expressions.
filter
public String filter(String string)
apply regex and substitution on a string
- filter in interface TokenFilter.Filter
string
- the string to apply filter on
- the filtered string
setFlags
public void setFlags(String flags)
flags
- the regex flags
setPattern
public void setPattern(String from)
from
- the regex pattern
setReplace
public void setReplace(String to)
to
- the replacement string
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.