Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→string-extract-class-names→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • Extract selectors from HTML-style attribute selectors
  • Non-parsing algorithm can tackle really dodgy CSS
  • Decode CSS selector escapes
  • Extract raw escaped selectors
  • Isolate a selector prelude before extraction
  • Read lexical tokens from an isolated CSS region, retaining original offsets.
  • Read one selector token at an exact index
  • Inspect the source ranges of extracted selectors
  • Read semantic attribute selectors
  • Processes whole CSS selectors
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Extract selectors from HTML-style attribute selectorsExtract selectors from HTML-style attribute selectors

↑ back to top

Permalink to Non-parsing algorithm can tackle really dodgy CSSNon-parsing algorithm can tackle really dodgy CSS

↑ back to top

Permalink to Decode CSS selector escapesDecode CSS selector escapes

↑ back to top

Permalink to Extract raw escaped selectorsExtract raw escaped selectors

↑ back to top

Permalink to Isolate a selector prelude before extractionIsolate a selector prelude before extraction

↑ back to top

Permalink to Read lexical tokens from an isolated CSS region, retaining original offsets.Read lexical tokens from an isolated CSS region, retaining original offsets.

↑ back to top

Permalink to Read one selector token at an exact indexRead one selector token at an exact index

↑ back to top

Permalink to Inspect the source ranges of extracted selectorsInspect the source ranges of extracted selectors

↑ back to top

Permalink to Read semantic attribute selectorsRead semantic attribute selectors

↑ back to top

Permalink to Processes whole CSS selectorsProcesses whole CSS selectors

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab