Regular Expressions 101

Community Patterns

1...45678...900

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(?<=<[^>]*)(?<=\s)(on\w+|formaction|action)=["']?(.*?)["']?(?=[\n>])
/
gm

Description

Find specific HTML attributes

Submitted by Joseph R. - 3 months ago