Escaping characters / emacs font-lock-mode

T

Tor Houghton

Am I right in that the following two are identical to the Perl interpreter?

$fsp=~s/([&; \'\"!|])/\\$1/g;

and

$fsp=~s/([&; '"!|])/\\$1/g;

?

(They are not identical for the Emacs "font-lock-mode" :)

Tor
 
E

Eric J. Roode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am I right in that the following two are identical to the Perl
interpreter?

$fsp=~s/([&; \'\"!|])/\\$1/g;

and

$fsp=~s/([&; '"!|])/\\$1/g;

?

(They are not identical for the Emacs "font-lock-mode" :)

Tor

Perhaps you need a better perl mode for your emacs installation. Cperl-
mode handles both cases equally well.

- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBP7UQUmPeouIeTNHoEQK9YgCfT+knaOIq36SMyBvQx8vBIW3j5DAAoNJ4
k5KzzzuWUbPD69dIT/OJYeoc
=Yfg0
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top