in reply to Regex problem

Is this the output you are looking for?
sample1STARsample2STARsample3*sample4*sample5
Here is what I used to generate this:
#!/usr/bin/env perl use warnings; use strict; my $value = 'sample1\*sample2\*sample3*sample4*sample5'; $value =~ s#\\\*#STAR#g; print "$value\n";
Note the escaped backslash in the regexp.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.