DEV Community

Discussion on: Friendly reminder: String.replaceAll is only supported on 83.7% of devices

Collapse
 
fawazahmed0 profile image
Fawaz Ahmed

yeah, i faced the same problem few days back, ended up using replace with g flag

Collapse
 
haideralipunjabi profile image
Haider Ali Punjabi

Hmm I used the .split().join() method