根据我的要求,我想获取字符串中的最后几个字符。例如我的字符串是“hello/how/are/you”,这里我只想要“are/you”。
[[processors.regex]]
order = 1305
namepass = ["*_promitor_test"]
# Tag and field conversions defined in a separate sub-tables
[[processors.regex.tags]]
## Tag to change
key = "resource"
## Regular expression to match on a tag value
pattern = "^(.*)$/are.*"
## Matches of the pattern will be replaced with this string.
replacement = "${0}"
result_key = "resource_type"
但我没有得到预期的输出,即“是/你”。有人可以帮我解决这个问题吗?