diff options
author | David Nicol <davidnicol@gmail.com> | 2007-07-11 12:31:45 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-07-12 09:56:38 +0000 |
commit | e2e6bec7edbce640c3881df6572504b616436a5e (patch) | |
tree | 242fa422efe4730c9fca84befa7090058207f44a /pod/perlre.pod | |
parent | b30379bcaeac6120f0264354e477975c06e21112 (diff) | |
download | perl-e2e6bec7edbce640c3881df6572504b616436a5e.tar.gz |
mention of g and c modifiers missing from perlre.pod
From: "David Nicol" <davidnicol@gmail.com>
Message-ID: <934f64a20707111531m313e3a9at82f002c68eab5bee@mail.gmail.com>
p4raw-id: //depot/perl@31596
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r-- | pod/perlre.pod | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 6060e181b7..56df3eb486 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -65,6 +65,15 @@ X</p> X<regex, preserve> X<regexp, preserve> Preserve the string matched such that ${^PREMATCH}, {$^MATCH}, and ${^POSTMATCH} are available for use after matching. +=item g and c +X</g> X</c> + +Global matching, and keep the Current position after failed matching. +Unlike i, m, s and x, these two flags affect the way the regex is used +rather than the regex itself. See +L<perlretut/"Using regular expressions in Perl"> for further explanation +of the g and c modifiers. + =back These are usually written as "the C</x> modifier", even though the delimiter |