I trying to understand why this code wont remove the extra spaces if it sees more than 2 spaces in the string, instead it is ignoring them, any suggestion?
#!/usr/bin/perl
use warnings;
use strict;
my $string = "“The Class Description_ Test”";
$string =~ s/[^a-zA-Z0-9,_\s{2,}]+//g;
print $string;
# Expecting: The Class Description_Test