Hi,
I try to test sed expressions in search app for futher proper filtering of incoming data with SEDCMD.
Let 1 have a strings [0-9a-zA-Z]* delimited by commas. There can be no any string between commas.
i.e. 1,a,B,,D,5
I'm trying to build regex to change 21-th pattern occurence in the string to some fixed chars (#)
Splunk IFX gives me that perfect extraction regex
(?i)^(?:[^,]*,){21}(?P [^,]+)
I tried to transform it to sed replace
s/(?i)(?:[^,]*,){21}([^,]+,)/###,/
It gives me all string wiped from start to 22-th pattern occurence
###,22-th occurence,24,25
What am I doing wrong?
... View more