Hello,
I am using rex to remove everything after a specific character, but i need to keep the specific character.
Currently, I am using this -
| rex mode=sed field=Cluster "s/[k].*//g"
Unfortunately it is also removing the 'k'. Can I amend this argument slightly so it removes everything after k but the k remains? Unfortunately I don't have any / to work with.
Thanks!
Hi @superisk,
if yu want to remove everything after "[k]", you could try something like this:
| rex mode=sed field=Cluster "s/[k].*/[k]/g"
Ciao.
Giuseppe
Hi @superisk,
if yu want to remove everything after "[k]", you could try something like this:
| rex mode=sed field=Cluster "s/[k].*/[k]/g"
Ciao.
Giuseppe
Thank you!