in reply to Swap between first found match
However, I think you might be looking for something like this:
Linda
Update: I responded quickly, and could/should have been much clearer. Let's try that again.
my $text = 'Test of "this first quote." Second quote "ignored."'; $text =~ s/"(.*?)"/"that"/;
|
|---|