diff --git a/processor/regex.go b/processor/regex.go index 0b1c938..3ff406f 100644 --- a/processor/regex.go +++ b/processor/regex.go @@ -74,6 +74,8 @@ func (p *RegexProcessor) ProcessContent(content string, pattern string, luaExpr log.Printf("Pattern modified to include (?s): %s", pattern) } + pattern = strings.ReplaceAll(pattern, "!num", `(\d*\.?\d+)`) + compiledPattern, err := regexp.Compile(pattern) if err != nil { log.Printf("Error compiling pattern: %v", err)