In JavaScript the "empty" regular expression literal is written `/(?:)/` since the parser would erroneously take `//` as the start of a single-line comment
https://www.ecma-international.org/ecma-262/5.1/#sec-7.8.5
#JavaScript #ECMA #Empty #RegExp
In JavaScript the "empty" regular expression literal is written `/(?:)/` since the parser would erroneously take `//` as the start of a single-line comment
https://www.ecma-international.org/ecma-262/5.1/#sec-7.8.5
#JavaScript #ECMA #Empty #RegExp
Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.
All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.