markdown guide

I assume that the first STRING_ONE is a variable contains another string.

entered_text.replace(new RegExp(STRING_ONE, 'g'), 'STRING_ONE');

PS: Make sure to double escape the \ characters in STRING_ONE as you are putting regex pattern from string. So, for example, ^[a-z\d-]+$ must be written as ^[a-z\\d-]+$.


STRING_TWO replace word or words from STRING_ONE

But i have too many word to replace.

Classic DEV Post from Apr 18 '19

There's More Than One Way to Become a Developer

An overview of the pros and cons of the different education options to become a developer

ivkeMilioner profile image

We have dark mode, custom font settings, and lots of other config.

Go to the "misc" section of your settings to customize your experience ❤️