Regular Expressions 101

Sponsors

Library entries

0
javascript

isUrl updated regex

Latest isUrl regex
Submitted by anonymous - 5 years ago
0
javascript

Linux Updates

no description available
Submitted by anonymous - 5 years ago
0
javascript

SFMC Fields

no description available
Submitted by anonymous - 5 years ago
0
python

Timestamp

no description available
Submitted by anonymous - 5 years ago
0
javascript

Replace bad comments

no description available
Submitted by anonymous - 5 years ago
0
javascript

匹配图片title src

no description available
Submitted by anonymous - 5 years ago
0
javascript

Extract from on-pageText

no description available
Submitted by anonymous - 5 years ago

A complete recognition of HTML elements pattern.

Vote

0

Regular Expression
javascript

/
([\n ]*((<((([a-zA-Z]+)( +(\w|\w+-+\w*)+ *= *(( *(\w|\w+-+\w*)+ *)|((") *.+ *("))|((') *.+ *('))|(\\" *.+ *\\")|(\\' *.+ *\\')))* *((\/)|(>([ \n]|.)*<\/[a-zA-Z]+)))|(!--([ \n]|.)*--))>)([\n ]*<((([a-zA-Z]+)( +(\w|\w+-+\w*)+ *= *(( *(\w|\w+-+\w*)+ *)|((") *.+ *("))|((') *.+ *('))|(\\" *.+ *\\")|(\\' *.+ *\\')))* *((\/)|(>([ \n]|.)*<\/[a-zA-Z]+)))|(!--([ \n]|.)*--))>)*)[\n ]*$)
/
gy

Description

Loading markdown...
Submitted by Rafael Laurindo - 6 years ago