InterviewSolution
Saved Bookmarks
| 1. |
How Regexp.replace Method Works? |
|
Answer» The REPLACE METHOD takes 2 parameters. If the search is successful then it replaces that match with the replace-string, and the new string is returned. If there are no matches then the original search-string is returned. The Replace method takes 2 parameters. If the search is successful then it replaces that match with the replace-string, and the new string is returned. If there are no matches then the original search-string is returned. |
|