JavaScript『正規表現』
「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web
| 順位 | 名前 | スコア | 称号 | 打鍵/秒 | 正誤率 | 時間(秒) | 打鍵数 | ミス | 問題 | 日付 |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | qqq | 2430 | 頑張ったね! | 2.5 | 97.1% | 414.3 | 1038 | 31 | 32 | 2025/11/22 |
| 2 | mh | 1729 | もう一歩! | 1.8 | 95.2% | 570.0 | 1038 | 52 | 32 | 2025/11/24 |
| 3 | mikaroko | 1330 | もう一歩! | 1.3 | 96.4% | 751.6 | 1038 | 38 | 32 | 2025/10/27 |
関連タイピング
-
競技プログラミングに特化したc++コードのタイピングです。
プレイ回数2607英語長文300秒 -
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数36万1071打 -
コマンドラインやプログラミング言語のタイピング練習用
プレイ回数2226英語長文90秒 -
プレイ回数448英語長文90秒
-
JavaScript 暗記用です
プレイ回数2092英語長文1567打 -
JAVAの練習用です。
プレイ回数1496長文120秒 -
C言語キーワード、予約語、ライブラリ名
プレイ回数211英語993打 -
メソッド名やクラス名をタイピングしよう
プレイ回数253長文英字60秒
問題文
(Regular expression)
Regular expression
(new RegExp('abc','ig');)
new RegExp('abc','ig');
(/abc/ig;)
/abc/ig;
(\n)
\n
(\t)
\t
(/[0-9]+/.exec('ab12');)
/[0-9]+/.exec('ab12');
('2:4'.match(/\d+/g);)
'2:4'.match(/\d+/g);
(new RegExp('ab+c').test('abcdef');)
new RegExp('ab+c').test('abcdef');
(/word/gi.flags;)
/word/gi.flags;
(/word/gim.ignoreCase;)
/word/gim.ignoreCase;
(/word/gim.global;)
/word/gim.global;
(/word/gim.multiline;)
/word/gim.multiline;
(/word/gim.unicode;)
/word/gim.unicode;
(/word/gim.sticky;)
/word/gim.sticky;
(/[a-z]+/i.source; new RegExp('[0-9]+','ig').source;)
/[a-z]+/i.source; new RegExp('[0-9]+','ig').source;
(const re=/123/g;re.test('abc123def'); console.log(re.lastIndex);)
const re=/123/g;re.test('abc123def'); console.log(re.lastIndex);
(['Jan','Feb','Mar','Apr','May'].filter(w=>/^M/.test(w));)
['Jan','Feb','Mar','Apr','May'].filter(w=>/^M/.test(w));
('aA bB'.match(/[a-z]+/ig);)
'aA bB'.match(/[a-z]+/ig);
(['Ja','Fe','Ma','Ap','Ma'].filter(w=>/^[^M]/.test(w));)
['Ja','Fe','Ma','Ap','Ma'].filter(w=>/^[^M]/.test(w));
(['ja','en','ru','fr','ar'].filter(w=>/(a|u)\b/.test(w));)
['ja','en','ru','fr','ar'].filter(w=>/(a|u)\b/.test(w));
('aa aa aa'.replace(/^a/gim,'aa');)
'aa aa aa'.replace(/^a/gim,'aa');
('1/23/45'.match(/[0-9]+/g);)
'1/23/45'.match(/[0-9]+/g);
('10 20 30'.replace(/0$/gim,'00');)
'10 20 30'.replace(/0$/gim,'00');
('00 000 0000'.replace(/\b0/gim,'1');)
'00 000 0000'.replace(/\b0/gim,'1');
('akb88 hkt88'.replace(/\d\B/gim,'4');)
'akb88 hkt88'.replace(/\d\B/gim,'4');
('1 22 333 4444'.match(/\b\d{3}\b/g);)
'1 22 333 4444'.match(/\b\d{3}\b/g);
(console.log('dad mam'.replace(/(\w+)\s(\w+)/,'$2 $1'));)
console.log('dad mam'.replace(/(\w+)\s(\w+)/,'$2 $1'));
('abc A_bc bbc'.match(/\b[a]\w+/gi);)
'abc A_bc bbc'.match(/\b[a]\w+/gi);
(console.log('aaa\nbbb\rccc');)
console.log('aaa\nbbb\rccc');
('aa bb\ncc dd ee'.match(/bb[^]*cc/);)
'aa bb\ncc dd ee'.match(/bb[^]*cc/);
(const str='#foo#';const re=/f/y; re.lastIndex=1;re.test(str);)
const str='#foo#';const re=/f/y; re.lastIndex=1;re.test(str);
(const url='https://xxx.domain.com'; console.log(/[^.]+/.exec(url)[0].substr(8));)
const url='https://xxx.domain.com'; console.log(/[^.]+/.exec(url)[0].substr(8));