advanced code snippet search
noah on 03/25/08
regex replace String
2 people have marked this snippet as a favorite
Equivalent of the Perl code: url =~ s/foo/bar/
url = url.gsub /foo/, 'bar'
Report this snippet
You need to login to post a comment.