That will replace all instances.#!/usr/bin/perl -w use strict; my $test = "Bla bla bla;bla bla(foo; bar);bla blaBla bla bla; bla bla +(foo; bar); bla bla "; $test =~ s/(\([^;]*);([^;]*\))/$1,$2/g; print $test;
In reply to (Ovid) Re: Search and Replace
by Ovid
in thread Search and Replace
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |