--- title: 正規表現の作成 slug: Web/JavaScript/Guide/Creating_a_Regular_Expression ---
正規表現は 2 つの方法で作ることができます。
var re = /ab+c/;
var re = new RegExp("ab+c");
{{ PreviousNext("JavaScript/Guide/Operators/Special_Operators", "JavaScript/Guide/Writing_a_Regular_Expression_Pattern") }}