0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Regex 正規表現まとめ

0
Posted at

はじめに

未来電子テクノロジーでインターンをしている<小栗>です。
「プログラミング初心者であるため、内容に誤りがあるかもしれません。
もし、誤りがあれば修正するのでどんどん指摘してください。

正規表現まとめ

Pythonの正規表現をまとめます。
ちなみに、今回初めてマークダウンでテーブルを作成しました。

メタ文字 意味
^ 文字列の先頭にマッチ
$ 文字列の末尾にマッチ
. 任意の文字にマッチ
[ ... ] [と]で囲まれた中に並べた1文字にマッチ
[^ ... ] [^ と ]で囲まれた中で並べた文字以外の任意の1文字にマッチ
* 【繰返し指定子】直前に記述した文字が0文字以上連続していることを指定し、後続の繰返し指定子よりも優先して可能な限り最大数マッチさせようとする。

おわり

まだまだあるので追加していきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?