<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Hive to extract multiple ip addresses from a string in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-to-extract-multiple-ip-addresses-from-a-string/m-p/243741#M205539</link>
    <description>&lt;P&gt;Are you familiar with user defined functions?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 00:17:00 GMT</pubDate>
    <dc:creator>paulpaul1076</dc:creator>
    <dc:date>2019-02-08T00:17:00Z</dc:date>
    <item>
      <title>Hive to extract multiple ip addresses from a string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-to-extract-multiple-ip-addresses-from-a-string/m-p/243739#M205537</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a string&lt;/P&gt;&lt;PRE&gt;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&lt;/PRE&gt;&lt;P&gt;I want to output all the ip addresses in comma saperated. I tried the below&lt;/P&gt;&lt;PRE&gt;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  |
+------------------------------------------------------------------------+--+
&lt;/PRE&gt;&lt;P&gt;Expected output is : 111.111.111.111,222.222.222.222,999.999.999&lt;/P&gt;&lt;P&gt;Could you please help me&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 18:29:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-to-extract-multiple-ip-addresses-from-a-string/m-p/243739#M205537</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2019-02-06T18:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive to extract multiple ip addresses from a string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-to-extract-multiple-ip-addresses-from-a-string/m-p/243740#M205538</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; can you please help me&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 00:04:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-to-extract-multiple-ip-addresses-from-a-string/m-p/243740#M205538</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2019-02-08T00:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive to extract multiple ip addresses from a string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-to-extract-multiple-ip-addresses-from-a-string/m-p/243741#M205539</link>
      <description>&lt;P&gt;Are you familiar with user defined functions?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 00:17:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-to-extract-multiple-ip-addresses-from-a-string/m-p/243741#M205539</guid>
      <dc:creator>paulpaul1076</dc:creator>
      <dc:date>2019-02-08T00:17:00Z</dc:date>
    </item>
  </channel>
</rss>

