DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
remove duplicate break line from string in typescript
text = text.replace(/( | | ){2}/g, '$1').replace(/( | | ){3,}/g, '$1 ');
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#duplicate
#break
#line
#string
#typescript
ADD COMMENT
Topic
COMMENT
Name
1+6 =
Submit