<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nonylene</author_name>
  <author_url>https://blog.hatena.ne.jp/nonylene/</author_url>
  <blog_title>Unyablog.</blog_title>
  <blog_url>https://nonylene.hatenablog.jp/</blog_url>
  <categories>
    <anon>Kotlin</anon>
  </categories>
  <description>Kotlin の String#split は、 String を引数に取った場合 Regex を使用しません。 正規表現を用いて split を行うには、Regex を引数に取る必要があります。 例 java &quot;hogehoge piyo foo&quot;.split(&quot;\\s+&quot;) // =&gt; [&quot;hogehoge&quot;, &quot;piyo&quot;, &quot;foo&quot;] kotlin Bad &quot;hogehoge piyo foo&quot;.split(&quot;\\s+&quot;) // =&gt; [&quot;hogehoge piyo foo&quot;] Good &quot;hogehoge piyo foo&quot;.split(Regex(&quot;\\s+&quot;)) // =&gt; […</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnonylene.hatenablog.jp%2Fentry%2F2016%2F10%2F15%2F000000&quot; title=&quot;Kotlin の String#split で正規表現を用いる - Unyablog.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-15 00:00:00</published>
  <title>Kotlin の String#split で正規表現を用いる</title>
  <type>rich</type>
  <url>https://nonylene.hatenablog.jp/entry/2016/10/15/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
