Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 02-06-2019 10:29 AM
Hi All,
I have a string
String: some text with an ip 111.111.111.111 and a decimal 11.2323232 and some text here and then an int 1 and then some HTTP/1.1 with a 503 request and then another ip 222.222.222.222 and some imaginary 999.999.999.999
I want to output all the ip addresses in comma saperated. I tried the below
select regexp_replace(regexp_replace(String,'[^(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})]',' '),'\\s+',',');
+------------------------------------------------------------------------+--+
| _c0 |
+------------------------------------------------------------------------+--+
| ,111.111.111.111,11.2323232,1,1.1,503,222.222.222.222,999.999.999.999 |
+------------------------------------------------------------------------+--+
Expected output is : 111.111.111.111,222.222.222.222,999.999.999
Could you please help me
Created 02-07-2019 04:17 PM
Are you familiar with user defined functions?
Created 02-07-2019 04:04 PM
@Shu can you please help me
Created 02-07-2019 04:17 PM
Are you familiar with user defined functions?