The regexp/url\(\'(.+?)\'\)/g solves the problem, because of the un-greediness of the expression .+?, in contrast to the greedy expression .+ that matches to the entire following string
(if multi-line enabled):