Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-01-13 08:37
Flavor·ECMAScript (JavaScript)

/
create view [.\s\S]+?[ |\s\S]as[ |\s\S]
/
gm
Open regex in editor

Description

默认是贪婪模式;在量词后面直接加上一个问号?就是非贪婪模式。

Submitted by anonymous