Regular Expressions 101

Sponsors

Library entries

1
pcre

making things into columns

no description available
Submitted by anonymous - 6 years ago
2
pcre

the many john smiths

no description available
Submitted by anonymous - 6 years ago
1
pcre

phone number

no description available
Submitted by anonymous - 6 years ago
1
javascript

Josiah url

no description available
Submitted by Josiah - 6 years ago
1
javascript

test1

no description available
Submitted by anonymous - 6 years ago
1
javascript

\[[bui]\]

no description available
Submitted by Charlie - 6 years ago
1
pcre

Test No Match

no description available
Submitted by anonymous - 6 years ago
1
javascript

select you exclude bayou

no description available
Submitted by anonymous - 6 years ago
1
pcre

Doubleclick tile1

no description available
Submitted by anonymous - 6 years ago
1
javascript

match but don't capture

no description available
Submitted by anonymous - 6 years ago

Selectors.io Attribute Selector Implementation

Vote

1

Regular Expression
javascript

/
^\[\s*(((-?([_a-z]|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))([_a-z0-9-]|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*)|\\*)?|)?(-?([_a-z]|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))([_a-z0-9-]|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*)\s*((\^=|\$=|\*=|=|~=|\|=)\s*((-?([_a-z]|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))([_a-z0-9-]|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*)|((\"([^\n\r\f\"]|\\n|\r\n|\r|\f|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*\")|(\'([^\n\r\f\']|\\n|\r\n|\r|\f|(?![\u0000-\u0239]).*|((\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*\')))\s*)?\]$
/
gm

Description

Loading markdown...
Submitted by James Donnelly, Selectors.io - 6 years ago