Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ let reg = /(?<=(\$|£))\d+/;
alert( str.match(reg) ); // 30, $
```

请注意,对于后瞻断言,顺序保持不变,尽管前瞻括号在主模式之前。

通常括号是从左到右编号,但是后瞻断言是一个例外,它总是在主模式之后被捕获。所以 `pattern:\d+` 的匹配会首先进入结果数组,然后是 `pattern:(\$|£)`。


## 总结

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.