9 lines
189 B
Plaintext
9 lines
189 B
Plaintext
|
/(?:[^[#\s\\]+|\\(?:[\S\s]|$)|\[\^?]?(?:[^\\\]]+|\\(?:[\S\s]|$))*]?)+|(\s*#[^\n\r\u2028\u2029]*\s*|\s+)([?*+]|{[0-9]+(?:,[0-9]*)?})?/g
|
||
|
/{[0-9]+}?/g
|
||
|
{123}
|
||
|
{a}
|
||
|
f{a}
|
||
|
f
|
||
|
SyntaxError
|
||
|
SyntaxError
|