<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kitfactory</author_name>
  <author_url>https://blog.hatena.ne.jp/kitfactory/</author_url>
  <blog_title>たま〜にっき</blog_title>
  <blog_url>https://kitfactory.hatenadiary.org/</blog_url>
  <categories>
    <anon>Lua</anon>
  </categories>
  <description>Luaの文字列操作は非常に楽です。しかし、ただちょっとサンプルが少なくて、少し取っ付きにくいなと感じる方もいらっしゃるのではないでしょうか。だとすれば、それは残念なことです。ちょっと「名前,住所,電話番号」という文字列から、３つの要素を取り出すという例をやってみましょう。 Luaでは、こういったケースではstring.match()関数に適当な文字列パターンを与えるとで、名前、住所、電話番号が一気に取り出すことができます。強力ですよね？ それでは以下、Luaのstring.matchに与えるパターンを考えてみましょう。 ■Step1.取り出す個数を考える。 取り出す要素は三つですね。そのそれぞ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkitfactory.hatenadiary.org%2Fentry%2F20110403%2F1301840470&quot; title=&quot;Luaの文字列操作　①ある文字列から必要な部分を取り出す。しかも一気にまとめて取り出す方法。 - たま〜にっき&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>2011-04-03 23:21:10</published>
  <title>Luaの文字列操作　①ある文字列から必要な部分を取り出す。しかも一気にまとめて取り出す方法。</title>
  <type>rich</type>
  <url>https://kitfactory.hatenadiary.org/entry/20110403/1301840470</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
