正規表現の少し進んだ機能 / regex lookahead

正規表現の少し進んだ機能 / regex lookahead

USAMI Kosuke

August 19, 2022

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

14 slides
  1. 先読み 先読み(lookahead )は、位置にマッチする記法の一種で、位置の指定に正 規表現が使える。 (?= と ) で囲む。 ` `

    ` ` a(?=..d) → 「a 」の次に「任意の2 文字+d 」が来る場合に限り、「a 」にマッチする

More Decks by USAMI Kosuke

Other Decks in Programming