in reply to Re: Regexp help
in thread Regexp help

... and simplifying even further to
$str =~ /:([\w]+):/;

Since \d is a subset of \w, [\w\d] is the same as [\w].

Then the square brackets are also not needed:

$str =~ /:(\w+):/;