$string =~ s/class=([^" &]+)/class="$1"/g; [download]
In reply to Re: Strange regex needed by choroba in thread Strange regex needed by chromedome