org.apache.tools.ant.filters

Class TokenFilter.ContainsRegex

public static class TokenFilter.ContainsRegex extends TokenFilter.ChainableReaderFilter

filter to filter tokens matching regular expressions.
Method Summary
Stringfilter(String string)
apply regex and substitution on a string
voidsetFlags(String flags)
voidsetPattern(String from)
voidsetReplace(String to)

Method Detail

filter

public String filter(String string)
apply regex and substitution on a string

Parameters: string the string to apply filter on

Returns: the filtered string

setFlags

public void setFlags(String flags)

Parameters: flags the regex flags

setPattern

public void setPattern(String from)

Parameters: from the regex pattern

setReplace

public void setReplace(String to)

Parameters: to the replacement string

Copyright