Check out example codes for "c# regex replace". It will help you in understanding the concepts better.
Code Example 1
// replaces all / in a String with _
str = str.replace(/\//g,'_');
Code Example 2
Regex.Replace(
"input string", @"[a-zA-Z]+", "replace string"
);
Learn ReactJs, React Native from akashmittal.com