Archive
Highlighted

How to remove Double quotes from a ip field values?

Engager

Hello All,

I have a field named src which contains IP's but with double quotes around them.
I want to remove the double quotes from these values.

Example
extracted value src="10.23.25.23"
needed value src=10.23.25.23

0 Karma
Highlighted

Re: How to remove Double quotes from a ip field values?

Builder

Do it this way -

| eval src=replace(src,"\""."")

OR

| rex field=src "\"?(?<src>[\d\.]+)\"?"

View solution in original post

Highlighted

Re: How to remove Double quotes from a ip field values?

Engager

thanks for the answer. It works well

0 Karma