in reply to Remove double bracket and singe quotes
Did you mean that you want to only remove one single quote and not two of them?#!/usr/bin/perl use 5.010; use strict; use warnings; my $doc = "'C-3PO' or 'See-Threepio' is a humanoid robot character fro +m the [[Star Wars]] universe who appears in the original ''Star Wars' +' films, the prequel trilogy and the sequel trilogy."; $doc =~ s/[\[\]']+//g; say $doc;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Remove double bracket and singe quotes
by smknjoe (Beadle) on May 04, 2016 at 18:38 UTC | |
by Anonymous Monk on May 04, 2016 at 23:18 UTC | |
by smknjoe (Beadle) on May 04, 2016 at 23:47 UTC |