g_speran has asked for the wisdom of the Perl Monks concerning the following question:
$ScriptDir="C:\\temp\\\\"; print "1. ${ScriptDir}\n"; $ScriptDir =~ s/\\+/\//g; print "2. ${ScriptDir}\n"; $ScriptDir =~ s/\/+/\//g; print "3. ${ScriptDir}\n"; if ($ScriptDir =~/$\//) {$ScriptDir=~ s/$\///;}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Search & Replace repeating characters
by choroba (Cardinal) on Apr 22, 2020 at 22:36 UTC | |
Re: Search & Replace repeating characters
by stevieb (Canon) on Apr 22, 2020 at 22:37 UTC | |
by Marshall (Canon) on Apr 22, 2020 at 23:59 UTC | |
by kcott (Archbishop) on Apr 23, 2020 at 08:30 UTC | |
by g_speran (Scribe) on Apr 23, 2020 at 12:45 UTC | |
by Corion (Patriarch) on Apr 23, 2020 at 12:47 UTC | |
by Marshall (Canon) on Apr 29, 2020 at 08:38 UTC | |
Re: Search & Replace repeating characters
by haukex (Archbishop) on Apr 23, 2020 at 19:54 UTC |