Constructor PatternReplaceFilter
PatternReplaceFilter(TokenStream, Regex, String, Boolean)
Constructs an instance to replace either the first, or all occurances
Declaration
public PatternReplaceFilter(TokenStream in, Regex pattern, string replacement, bool all)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | in | the TokenStream to process |
System.Text.RegularExpressions.Regex | pattern | the pattern (a System.Text.RegularExpressions.Regex object) to apply to each Token |
System.String | replacement | the "replacement string" to substitute, if |
System.Boolean | all | if true, all matches will be replaced otherwise just the first match. |
See Also
System.Text.RegularExpressions.Regex.Replace(System.String,System.String)