当前位置:网站首页>ECMA 262 12 Lexical Grammer
ECMA 262 12 Lexical Grammer
2022-07-25 22:24:00 【你回到了你的家】
8 Literals
8.5 Regular Expression Literals
A regular expression literal is an input element that is converted to a RegExp object (see 22.2) each time the literal is evaluated. Two regular expression literals in a program evaluate to regular expression objects that never compare as === to each other even if the two literals’ contents are identical. A RegExp object may also be created at runtime by new RegExp or calling the RegExp constructor as a function (see 22.2.3).
下面的productions描述了regular expression literal的语法 and are used by the input element scanner to find the end of the regular expression literal. The source text comprising the RegularExpressionBody and the RegularExpressionFlags are subsequently parsed again using the more stringent ECMAScript Regular Expression grammar (22.2.1).
An implementation may extend the ECMAScript Regular Expression grammar defined in 22.2.1, but it must not extend the RegularExpressionBody and RegularExpressionFlags productions defined below or the productions used by these productions.
语法
R e g u l a r E x p r e s s i o n L i t e r a l : : / R e g u l a r E x p r e s s i o n B o d y / R e g u l a r E x p r e s s i o n F l a g s RegularExpressionLiteral::\\\qquad / \enspace RegularExpressionBody\enspace / \enspace RegularExpressionFlags RegularExpressionLiteral::/RegularExpressionBody/RegularExpressionFlags
R e g u l a r E x p r e s s i o n B o d y : : R e g u l a r E x p r e s s i o n F i r s t C h a r R e g u l a r E x p r e s s i o n C h a r s RegularExpressionBody::\\\qquad RegularExpressionFirstChar \enspace RegularExpressionChars RegularExpressionBody::RegularExpressionFirstCharRegularExpressionChars
R e g u l a r E x p r e s s i o n C h a r s : : [empty] R e g u l a r E x p r e s s i o n C h a r s R e g u l a r E x p r e s s i o n C h a r RegularExpressionChars::\\ \qquad \text{[empty]} \\\qquad RegularExpressionChars\enspace RegularExpressionChar RegularExpressionChars::[empty]RegularExpressionCharsRegularExpressionChar
边栏推荐
- Ts:typera code fragment indentation display exception (resolved) -2022.7.24
- Why is the integer type 128 to byte -128
- 还不懂mock测试?一篇文章带你熟悉mock
- C语言逆序打印字符串的两种方法
- 淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??
- Smart S7-200 PLC channel free mapping function block (do_map)
- Ffmpeg plays audio and video, time_ Base solves the problem of audio synchronization and SDL renders the picture
- Xiaobai programmer's seventh day
- ThreadLocal 总结(未完待续)
- SQL中in的用法 DQL 查询
猜你喜欢

6-17 vulnerability exploitation - deserialization remote command execution vulnerability

How to resolve a domain name to multiple IP addresses?

Xiaobai programmer day 8

编译和反编译

QML module not found

H5 lucky scratch lottery free official account + direct operation

Usage of in in SQL DQL query

分享两个音乐播放地址

【C语法】void*浅说

Fill the whole square with the float property
随机推荐
TFrecord写入与读取
3dslicer import cone beam CT image
What is redis? Briefly describe its advantages and disadvantages
4day
Nuclear power plants strive to maintain safety in the heat wave sweeping Europe
According to the use and configuration of data permissions in the open source framework
Using simple scripts to process data in 3dslicer
Redis foundation 2 (notes)
Wechat applet (anti shake, throttling), which solves the problem that users keep pulling down refresh requests or clicking buttons to submit information; Get the list information and refresh the data
Data governance under data platform
To light up all the positions in the string that need to be lit, at least a few lights are needed
Internship: writing common tool classes
kubernetes之VictoriaMetrics单节点
Data quality: the core of data governance
El expression improves JSP
Imitation Tiktok homepage interface
TS:typora代码片段缩进显示异常(已解决)-2022.7.24
Based on if nesting and function call
torchvision
How to call the size of two numbers with a function--- Xiao Tang