OK, @lucy24, time to use your regex skills again! LOL Anyone can answer, of course, I just know that Lucy loves her some regex :-P
What I'm finding is that when a word begins with $, my regex isn't matching it like I'm expecting. Examples:
# First test
$str = '$';
$str =~ s/\b\$/s/g;
print "Result: $str";
# Result: $
# Second test, using \Q .. \E to escape the $
$str = '$';
$str =~ s/\b\Q$\E/s/g;
print "Result: $str\n";
# Result: $
# Third test, text before $
$str = 'this is a dollar sign $';
$str =~ s/\b\$/s/g;
print "Result: $str";
# Result: this is a dollar sign $
# Fourth test, remove \b from pattern
$str = '$';
$str =~ s/\$/s/g;
print "Result: $str";
# Result: s
I expected ALL of them to match and replace, but the \b is making it not match.
Thoughts?