Hi,
I trying to execute regex in search command with g (global) m (multi-line) s (single-line).
the regular way (?gms) yields g is unknown flag, so I've tried to convert it to sed mode s/(?ms).../replace/g.
Am I missing something?
Is there another way to achieve it?
Instead of the g modifier, use the max_match
option. For example:
... | rex max_match=0 "(?ms)(foo)" | ...
will find all instances of 'foo' in _raw.
That said, replacing rex with sed does something very different. What exactly are you trying to accomplish with rex?
Instead of the g modifier, use the max_match
option. For example:
... | rex max_match=0 "(?ms)(foo)" | ...
will find all instances of 'foo' in _raw.
That said, replacing rex with sed does something very different. What exactly are you trying to accomplish with rex?