here we go
private static readonly string _regexPattern = @"[/]api[/]v[0-9].[0-9][/]Subscriber[/][0-9]{10}";
public override string GenerateRowKey(LogEvent logEvent, string suffix = null)
{
var logResult = $"{logEvent.Properties["RequestPath"]}";
var regex = new Regex(logResult);
var fh = regex.IsMatch(_regexPattern);
---
}
logResult is "/api/v1.0/Subscriber/2727272727"
Have no idea why this doesn't work.
"Have no idea why this doesn't work"-- Well what is it supposed to do, we cant read your mind. We need a problem statement, sample input/output, etc