Learned or Solved Something Today?

Dump it here! Let others learn from you

Showing 1 of 1 from page 1

anonymous posted in #javascript #regex #snippets #gist

Remove repeating characters occurred more than twice, using Regex In Javascript

In many case you might want to replace duplicate characters when there are more than 2 repeats of a letter in a string Regex for remove consecutive repeating characters str replace 1 2 g 1 1 Pretty sm

fb