<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>konosumi</author_name>
  <author_url>https://blog.hatena.ne.jp/konosumi/</author_url>
  <blog_title>konosumi note</blog_title>
  <blog_url>https://www.konosumi.net/</blog_url>
  <categories>
    <anon>正規表現</anon>
  </categories>
  <description>詳説正規表現を読み終わったのですが、正規表現には後読みと先読みがあることを知りました。 特定条件の文字列を置換したいケースなどで、役に立つ機会がありそうです。 せっかく学んだので、紹介してみます。 詳説 正規表現 第3版作者:Jeffrey E.F. Friedl発売日: 2008/04/26メディア: 大型本 先読み 正規表現の先読みは、(?=...)という構文を使います。 #!/usr/bin/perl my $a = &quot;abcdef&quot;; my $b = &quot;abc123&quot;; # abcの右側に123が続く文字列かどうか # マッチしない if ($a =~ m/abc(?=123)/) {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.konosumi.net%2Fentry%2F2021%2F04%2F25%2F213747&quot; title=&quot;正規表現の後読みと先読みについて理解したので、紹介してみる - konosumi note&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>https://m.media-amazon.com/images/I/51cRxtwo7IL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-25 21:37:47</published>
  <title>正規表現の後読みと先読みについて理解したので、紹介してみる</title>
  <type>rich</type>
  <url>https://www.konosumi.net/entry/2021/04/25/213747</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
