Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
create view [.\s\S]+?[ |\s\S]as[ |\s\S]
/
gm

Description

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

Submitted by anonymous - 3 years ago