Search
 
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
Name
1+6 =