Quantcast
Channel: Perl入門ゼミ
Viewing all articles
Browse latest Browse all 28

正規表現のキャプチャ $1, $2, $3, ...

$
0
0



  1. Perl




  2. 特殊変数



  3. here

「$1」「$2」「$3」には、正規表現でキャプチャされた文字列が順番に代入されます。

$1$2$3

この後は「$4」「$5」と続いていきます。


Viewing all articles
Browse latest Browse all 28

Trending Articles