Bordin
Thursday, 22 August 2013
Why doesn't this replace() replace "my"?
Why doesn't this replace() replace "my"?
Could someone explain why the replace() below doesn't replace "my"
$(function() {
var str = "put image in my gallery";
str = str.replace(/ my | in /g, " ");
});
There's a jsfiddle here.
Thanks.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment