- or download this
#!/usr/bin/perl -w
use strict;
...
<b>a,b</b>
<b>a,b
</b>
- or download this
#!/usr/bin/perl -w
use strict;
...
<b>a,b</b>
<b>a,b
</b>
- or download this
#!/usr/bin/perl -w
use strict;
...
<b>a,b</b>
<b>a,b
</b>
- or download this
$var =~ s!<a>(.*?),(.*?)</a>!<a>$1A$2</a>!gs;
- or download this
__DATA__
This is to test.
...
<a>ab</a>
<c>a,b</c>
<a>a,b</a>