I want to replace just the first occurrence of a regular expression in a string. Is there a convenient way to do this?