Regular Expressions 101

Library entries

Regex to detect HAML attribute expression whilst ignoring following text.

Vote

1

Regular Expression
javascript

/
^\{((?:(?:(?!\}).)+)(?:(?:\}\})?(?:(?:(?!\}).)+))+)\}(?!\})
/
gm

Description

Loading markdown...
Submitted by github.com/onlinecop - 7 years ago