| title |
|---|
JavaScript / Regex |
JavaScript / Regex
-
RegExp literals - Grammar and types - JavaScript | MDN
A regex literal (which is defined in detail later) is a pattern enclosed between slashes. The following is an example of a regex literal.
var re = /ab+c/;