RegexToMatch Property

log4net SDK Reference |

# StringMatchFilter.RegexToMatch Property

Sets the regular expression to match

[Visual Basic]
Public Property RegexToMatch As String
[C#]
public string RegexToMatch {get; set;}

#### Remarks

The regular expression pattern that will be matched against the rendered message. If the message matches this pattern then the filter will match. If a match is found then the result depends on the value of AcceptOnMatch.

One of StringToMatch or RegexToMatch must be specified.

#### See Also

StringMatchFilter Class | log4net.Filter Namespace