understand syntax of regex patterns

Amazing blog to get started with:


To search and replace a string with same string appended with some characters.

Put this regex ((.)+) in search box.

And in the replace box, put “$1”,

Example: Below is a file with following string

Node js

Now you want to format this data into:
“Node js”,

Ex: I wanted to match word go in my text.
Ex Javascript code:

let v = “dynamic value”;

let rgx = new RegExp(“\\b(“+v+”)\\b”,”gi”);

Suffering from Knowledge Quest

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store