Substitute s for the nth
match of regular expression r in the string
t. Leave t unchanged, but
return new string as the result. If n is
g or G, change all matches. If
t is not supplied, it defaults to $0.
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.