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

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

Table 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

Quick Take

↑ back to top

Inspect the character and remainder after a match

↑ back to top

Let a callback veto an otherwise successful match

↑ back to top

Match without letter-case sensitivity

↑ back to top

The Callback Use

↑ back to top

Advance to the next string index

↑ back to top

Match the start or end of a string

↑ back to top

Include the indexed character in a left-side match

↑ back to top

Match a value immediately to the left of an index

↑ back to top

Include the indexed character in a right-side match

↑ back to top

Require boundary characters and choose hungry matching

↑ back to top

Tolerate a missing character

↑ back to top

Skip selected characters before matching

↑ back to top

Skip 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