javascript regular expression replace example

 

 

 

 

regexp. Required. The regular expression to find and replace.In the following example we will replace "the" with "Ze":