タグ

ブックマーク / blog.ichiroc.in (1)

  • Emacs 正規表現シンタックス - ichiroc subset

    \s- という正規表現はスペース Emacs の正規表現を見ていたら "\s-" という表現が出て来た。 良くわからなかったが、何となくスペースが入る位置だったので、 Emacs 正規表現 スペース で検索したら一発で出た。 "\s-" が示すのは 空白、 \t , \n かな。 ついでに他の正規表現を調べた。 EmacsWiki: Regular Expression シンタックス 分かりきってるのは省いてある。 表現 英語説明 意味 \w word constituent 文字列(文字、数字) \b word boundary 文字列の区切り文字(空白とか、改行) \sc character with c syntax (e.g. \s- for whitespace char) わからん C言語での文字列? \< \> start\end of word 文字列の始まり、終わり \_

    Emacs 正規表現シンタックス - ichiroc subset
  • 1