Article View: pl.comp.lang.perl
Article #39903Re: Podmiana znaków w stringu
From: Szymon Sokół
Date: Tue, 02 Nov 2004 16:32
Date: Tue, 02 Nov 2004 16:32
18 lines
1656 bytes
1656 bytes
On Tue, 2 Nov 2004 15:45:54 +0100, vellezz wrote: > mam problem z regexpem, chciałbym wymienić wszystkie wystąpienia znaków " i > ' na \", > próbowałem to zrobić za pomocą takiego regexpa: > $data->[$i]->[2] =~ s/([\'|\"])/\\\"/g; ...a powinno być: $data->[$i]->[2] =~ s/['"]/\\"/g; > Walczę z tym już od 3 dni, przeglądałem manuale etc. Może pora nauczyć się angielskiego? Przynajmniej na tyle, żeby te manuale czytać ze zrozumieniem? -- Szymon Sokół (SS316-RIPE) -- Network Manager B Computer Center, AGH - University of Science and Technology, Cracow, Poland O http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F Free speech includes the right not to listen, if not interested -- Heinlein H
Technical Details
Message-ID:
<cm8gat.3vv92v9.1@sloth.hell.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mailReferences:
<cm86gs$f7q$1@atlantis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mail From: Szymon Sokół <szymon@bastard.operator.from.hell.pl> Newsgroups: pl.comp.lang.perl Subject: Re: Podmiana znaków w stringu Date: Tue, 2 Nov 2004 17:32:12 +0100 Organization: Guy Fawkes Society Lines: 18 Message-ID: <cm8gat.3vv92v9.1@sloth.hell.pl> References: <cm86gs$f7q$1@atlantis.news.tpi.pl> NNTP-Posting-Host: chello062179072161.chello.pl Mime-Version: 1.0 X-Trace: galaxy.uci.agh.edu.pl 1099413169 12467 62.179.72.161 (2 Nov 2004 16:32:49 GMT) X-Complaints-To: usenet@uci.agh.edu.pl NNTP-Posting-Date: Tue, 2 Nov 2004 16:32:49 +0000 (UTC) User-Agent: 40tude_Dialog/2.0.14.1 Hamster/2.0.1.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit