Need to perform a string replace

I have some fields with some url encoded content. Since there is no urldecode function, the next best thing would be to do a straight string replace.

I could use split to excise the target substrings, but there is no complementary join to finish the replacement.

Example (twice-encoded spaces):

This%2520is%2520an%2520example. => “This is an example”

Is there a way to convert this to an unencoded form? I’ve tried regex replace, but that only affects the first such match, and I’m not sure a repeated match could be used in a meaningful way (e.g. “(([^%]+)(?%2520)?)”)

Please create a feature request at Issues · Graylog2/graylog2-server · GitHub.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.