in reply to a small regexp question

actually, from the looks of it, what you *really* want is a regex that simply replaces all the underscores by spaces. Assuming for a second you want the original string to remain intact how about this:
my $corrected_string = $string; $corrected_string =~ s/_/ /g;


Remember rule one...

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