Marusyk / grok.net

.NET implementation of the grok 📝
MIT License
287 stars 55 forks source link

Multiline strings #66

Closed ricsiLT closed 1 year ago

ricsiLT commented 1 year ago

Hi,

Since we're essentially passing down Regex to Grok, and Regex supports multiline via RegexOptions.Singleline, could it be supported in this package? I have some logs that unfortunately have \ns in them and I don't want to create a new object via .Replace() call. As it stands now, when I try to parse such string I only get items up to newline :(

Marusyk commented 1 year ago

Hello, sure. Are you interested in creating a pull request for this change?

ricsiLT commented 1 year ago

Hmmm. Didn't consider it but - why not :D Will try and see how it goes

ricsiLT commented 1 year ago

PR is there, check it out :)

ricsiLT commented 1 year ago

@Marusyk