javascript regular expression help
I want to use replace() to change the last occurence of a word which isn't necessarily at the end of a line. For example, replace the last occurence of 'duck' with 'goose' in "duck duck duck goose" so that it becomes "duck duck goose goose".
|