org.apache.tools.ant.filters

Class TokenFilter.ReplaceRegex

public static class TokenFilter.ReplaceRegex extends TokenFilter.ChainableReaderFilter

filter to replace regex.
Method Summary
Stringfilter(String line)
voidsetFlags(String flags)
voidsetPattern(String from)
the from attribute
voidsetReplace(String to)
the to attribute

Method Detail

filter

public String filter(String line)

Parameters: line the string to modify

Returns: the modified string

setFlags

public void setFlags(String flags)

Parameters: flags the regex flags

setPattern

public void setPattern(String from)
the from attribute

Parameters: from the regex string

setReplace

public void setReplace(String to)
the to attribute

Parameters: to the replacement string

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.