From b33bbe436e8060bcee6f2a8d80730bbc37559806 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 1 Apr 2011 22:01:25 -0600 Subject: [PATCH] perlreref: Update for 5.14 changes --- pod/perlreref.pod | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pod/perlreref.pod b/pod/perlreref.pod index efae00c..277b888 100644 --- a/pod/perlreref.pod +++ b/pod/perlreref.pod @@ -21,7 +21,7 @@ false if the match succeeds, and true if it fails. $var !~ /foo/; -C searches a string for a pattern match, +C searches a string for a pattern match, applying the given options. m Multiline mode - ^ and $ match internal lines @@ -33,17 +33,23 @@ applying the given options. o compile pattern Once g Global - all occurrences c don't reset pos on failed matches when using /g + a restrict \d, \s, \w and [:posix:] to match ASCII only + aa (two a's) also /i matches exclude ASCII/non-ASCII + l match according to current locale + u match according to Unicode rules + d match according to native rules unless something indicates + Unicode If 'pattern' is an empty string, the last I matched regex is used. Delimiters other than '/' may be used for both this operator and the following ones. The leading C can be omitted if the delimiter is '/'. -C lets you store a regex in a variable, +C lets you store a regex in a variable, or pass one around. Modifiers as for C, and are stored within the regex. -C substitutes matches of +C substitutes matches of 'pattern' with 'replacement'. Modifiers as for C, with two additions: -- 2.7.4