Usage of Regular Expression g in javascript tháng 2 03, 2016 / in javascript, javascript Beginner / with No comments / In regular expression g is used for global search. If you not use this g that expression only search and find with the first match. More details shown in the following example. str.replace(/s/g,"#"); Example Program:- (Editor) Editor is Loading... Output:- Advertisement Share This: Facebook Twitter Google+ Stumble Digg Gửi email bài đăng nàyBlogThis!Chia sẻ lên TwitterChia sẻ lên Facebook
0 nhận xét:
Đăng nhận xét