LoginSignup
0
0

More than 5 years have passed since last update.

正規表現

Posted at

正規表現パターンは、/abc/ のような単純な文字、または /ab*c/ や /Chapter (\d+).\d*/ のような単純な文字と特殊文字との組み合わせからなります。

var line = chunk.toString();
    var arr = line.split(' '); 
var item  = arr[i].replace(/\r?\n/g, '')
? ... 直前の項目を0回または、1回だけ繰り返す。
g ... グローバルサーチ。最初に一致したものだけでなく、一致するもの全てを検索する。
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