Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Catalog / jonschlinkert / replace-nth
Public GitHub Catalog Discovered Oct 1, 2026

jonschlinkert / replace-nth

Replace only specific occurrences of a string. e.g. if the string exists 10 times, you can replace, say, the 3rd and 8th occurrences only, etc. Returns a new string with nth specific matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.

View repository on GitHub ↗ View creator profile Browse directory

About this discovery

This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.

#20042122GitHub System ID
jonschlinkertOrganization / User
PublicVisibility
ActiveCatalog Status

More from jonschlinkert

↗

jonschlinkert/verb-tag-methods

Easily generate a sorted array, JSON or markdown list, of property names of all enumerable properties, own and inherited, of objects that have function values.

Discovered
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.