Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for looking!#!/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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing unwanted characters and extra spaces from string.
by haukex (Archbishop) on Sep 27, 2018 at 14:29 UTC | |
by Anonymous Monk on Sep 27, 2018 at 15:00 UTC | |
|
Re: Removing unwanted characters and extra spaces from string.
by hippo (Archbishop) on Sep 27, 2018 at 14:41 UTC |