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

backOpen Source→string-match-left-right→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • Inspect the character and remainder after a match
  • Let a callback veto an otherwise successful match
  • Match without letter-case sensitivity
  • The Callback Use
  • Advance to the next string index
  • Match the start or end of a string
  • Include the indexed character in a left-side match
  • Match a value immediately to the left of an index
  • Include the indexed character in a right-side match
  • Require boundary characters and choose hungry matching
  • Tolerate a missing character
  • Skip selected characters before matching
  • Skip whitespace before matching
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Inspect the character and remainder after a matchInspect the character and remainder after a match

↑ back to top

Permalink to Let a callback veto an otherwise successful matchLet a callback veto an otherwise successful match

↑ back to top

Permalink to Match without letter-case sensitivityMatch without letter-case sensitivity

↑ back to top

Permalink to The Callback UseThe Callback Use

↑ back to top

Permalink to Advance to the next string indexAdvance to the next string index

↑ back to top

Permalink to Match the start or end of a stringMatch the start or end of a string

↑ back to top

Permalink to Include the indexed character in a left-side matchInclude the indexed character in a left-side match

↑ back to top

Permalink to Match a value immediately to the left of an indexMatch a value immediately to the left of an index

↑ back to top

Permalink to Include the indexed character in a right-side matchInclude the indexed character in a right-side match

↑ back to top

Permalink to Require boundary characters and choose hungry matchingRequire boundary characters and choose hungry matching

↑ back to top

Permalink to Tolerate a missing characterTolerate a missing character

↑ back to top

Permalink to Skip selected characters before matchingSkip selected characters before matching

↑ back to top

Permalink to Skip whitespace before matchingSkip whitespace before matching

↑ 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