in reply to Regex problem
Here is what I used to generate this:sample1STARsample2STARsample3*sample4*sample5
Note the escaped backslash in the regexp.#!/usr/bin/env perl use warnings; use strict; my $value = 'sample1\*sample2\*sample3*sample4*sample5'; $value =~ s#\\\*#STAR#g; print "$value\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |