summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
Commit message (Collapse)AuthorAgeFilesLines
* Nit in perlre.podKarl Williamson2010-12-011-1/+1
|
* Document Unicode doc fixKarl Williamson2010-12-011-19/+25
|
* DOCs: Clarify that \w matches marks and \PcKarl Williamson2010-10-311-1/+3
| | | | | | The previous documentation really didn't specify what \w is. It matches the underscore, but also all other connector punctuation, plus any marks, such as diacritical accents that occur within a word.
* Subject: [perl #58182] partial: Add uni \s,\w matchingKarl Williamson2010-10-151-3/+17
| | | | | | | | | | | | | | | | | | | This commit causes regex sequences \b, \s, and \w (and complements) to match in the latin1 range in the scope of feature 'unicode_strings' or with the /u regex modifier. It uses the previously unused flags field in the respective regnodes to indicate the type of matching, and in regexec.c, uses that to decide which of the handy.h macros to use, native or Latin1. I chose this for now rather than create new nodes for each type of match. An earlier version of this patch did that, and in every case the switch case: statements were adjacent, offering no performance advantage. If regexec were modified to use in-line functions or more macros for various short section of it, then it would be faster to have new nodes rather than using the flags field. But, using that field simplified things, as this change flies under the radar in a number of places where it would not if separate nodes were used.
* perlre.pod: slight rewordingKarl Williamson2010-10-151-4/+4
|
* Remove or update pod references to regexp reëntrance.Father Chrysostomos2010-10-131-6/+7
|
* Teach Perl about Unicode named character sequencesKarl Williamson2010-09-251-4/+4
| | | | | | | | | | | | | mktables is changed to process the Unicode named sequence file. charnames.pm is changed to cache the looked-up values in utf8. A new function, string_vianame is created that can handle named sequences, as the interface for vianame cannot. The subroutine lookup_name() is slightly refactored to do almost all of the common work for \N{} and the vianame routines. It now understands named sequences as created my mktables.. tests and documentation are added. In the randomized testing section, half use vianame() and half string_vianame().
* Add /d, /l, /u (infixed) regex modifiersKarl Williamson2010-09-221-17/+48
| | | | | | | | | | | | This patch adds recognition of these modifiers, with appropriate action for d and l. u does nothing useful yet. This allows for the interpolation of a regex into another one without losing the character set semantics that it was compiled with, as for the first time, the semantics is now specified in the stringification as one of these modifiers. To this end, it allocates an unused bit in the structures. The off- sets change so as to not disturb other bits.
* Add (?^...) regex constructKarl Williamson2010-09-201-3/+45
| | | | | | | | | | | | | | | | | | This adds (?^...) to signify to use the default regex modifiers for the cluster or embedded pattern-match modifier change. The major purpose of this is to simplify regex stringification, so that "^" is output in place of "-xism". As a result, the stringification will not change in the future when new regex modifiers are added, so tests, etc. that rely on a particular stringification will have to change now, but never again. Code that needs to work properly with both old- and new-style regexes can use something like the following: # Accept both old and new-style stringification my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? '^' : '-xism'; This construct is Ben Morrow's idea.
* RT #77150: perlre documentation issue and possible fixChas. Owens2010-08-141-5/+5
|
* pods: mention \o{}, 3 octal digitsKarl Williamson2010-07-191-5/+6
| | | | | | | | This patch adds a mention of \o{} to perlre to avoid the backreference ambiguities, and uses 3 octal digits in an example, and suggests using 3 digits where 2 were suggested before. Signed-off-by: David Golden <dagolden@cpan.org>
* Add \o{} escapeKarl Williamson2010-07-171-1/+1
| | | | | | | | | | This commit adds the new construct \o{} to express a character constant by its octal ordinal value, along with ancillary tests and documentation. A function to handle this is added to util.c, and it is called from the 3 parsing places it could occur. The function is a candidate for in-lining, though I doubt that it will ever be used frequently.
* perlre.pod: NitsKarl Williamson2010-07-171-6/+5
| | | | Signed-off-by: David Golden <dagolden@cpan.org>
* Add examples to perlre on perils of not using \g{}Karl Williamson2010-07-171-1/+16
| | | | | | These come from Abigail. Signed-off-by: David Golden <dagolden@cpan.org>
* perlre: Add heading to separate unrelated paragraphsKarl Williamson2010-06-281-0/+2
| | | | | | I don't know where the text for the stuff below this new heading should go, but it clearly doesn't belon with what came before, so add a heading to separate them, perhaps rearranging things later
* Prefer \g1 over \1 in podsKarl Williamson2010-06-281-58/+71
| | | | | | | \g was added to avoid ambiguities that \digit causes. This updates the pod documentation to use \g in examples, and to prefer it when explaining the concepts. Some non-symmetrical outlined text dealing with it was also cleaned up.
* Standardize on use of 'capture group' over 'buffer'Karl Williamson2010-06-281-53/+56
| | | | | | Both terms 'capture group' and 'capture buffer' are used in the documentation. This patch changes most uses of the latter to the former, as they are referenced using "\g".
* Nits in perlre.podKarl Williamson2010-06-281-2/+3
|
* perlre: fix for 80 col displayKarl Williamson2010-05-081-120/+121
|
* Nits in perlre.pod, x-referencing, broken linksKarl Williamson2010-04-261-89/+74
|
* Slight editsKarl Williamson2010-03-281-2/+2
| | | | double word, make table fit in 80 column terminal
* Remove duplicate information and refer to other podsKarl Williamson2010-03-281-129/+28
| | | | Things were getting out of sync.
* Document that there are bugs with EBCDIC and regexesKarl Williamson2010-03-081-0/+2
|
* Document some re bugs in perlre.podKarl Williamson2010-02-281-0/+4
|
* Revise wording about /x caveatsKarl Williamson2010-02-281-5/+7
|
* Document Unicode case-insensitive [] range bugKarl Williamson2010-02-281-0/+5
|
* Quote a code exampleKarl Williamson2010-02-281-1/+1
|
* Revise notes on /x modifierKarl Williamson2010-02-281-5/+9
|
* Mark \N meaning [^\n] as experimentalKarl Williamson2010-02-281-1/+1
|
* Mention there are places /x modifier is ineffectiveKarl Williamson2010-02-281-4/+8
|
* Document \N{U+...}Karl Williamson2010-02-281-1/+4
|
* Update pods for \N changesKarl Williamson2010-02-281-0/+3
|
* delete orphaned textRobin Barker2010-02-111-17/+0
|
* [perl #71948] Documentation error for (*MARK)Philip Hazel2010-01-101-2/+1
| | | | The NAME portion of (*MARK:NAME) is not optional.
* Document that interpolating a '(??{ code })' construct in a regularAbigail2010-01-061-0/+6
| | | | expression also requires "use re 'eval'", just as '(?{ code })' does.
* PATCH: minor typo cleanup of pod/ directoryTom Christiansen2010-01-051-1/+1
| | | | | | | | | | | | | | These are all in the pod/ directory, and only the first is a code fix. There was also a single lingering ISO 8859-1 encoding that missed the UTF-8 upconvert. The rest are cleanups for typos, some of which seem to have been around for a rather long time: spelling errors, incorrect possessives, and extra, missing, or duplicated words. If you actually read through, I bet you'll realize what sparked this. :) --tom Signed-off-by: Abigail <abigail@abigail.be>
* Fix up pods for \XKarl Williamson2009-12-221-3/+1
|
* Document issues when using named captures in combination with a branch reset ↵Abigail2009-12-161-2/+18
| | | | pattern (see also #71136)
* Document backreferences to groups that did not matchMoritz Lenz2009-11-281-0/+4
| | | | | Also add a test for that, fill in test description, and sneak in a vim modeline for re_tests
* Improve warnings about known issues in (?{...}) blocks in the regex engineGerard Goossen2009-10-311-10/+9
|
* Clarify relationship of pattern modifiers and named subpatternsDave Rolsky2009-10-301-0/+4
|
* Fix {$^MATCH} typo in perlrebrian d foy2009-10-141-1/+1
|
* A number of pod fixes found by podcheck.tJesse Vincent2009-10-051-1/+2
|
* update perlre and perldelta to document change in behaviour of \w and \d and ↵Yves Orton2009-09-021-74/+31
| | | | POSIX charclasses
* Basic docs for \NRafael Garcia-Suarez2009-06-171-0/+1
|
* another go; was RE: [perl #49302] [[:print:]] v \p{Print} Robin Barker2008-04-261-3/+43
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093B12@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33752
* Assorted POD nits from the Debian bug list.Steve Peters2008-01-301-1/+1
| | | p4raw-id: //depot/perl@33129
* \X is equivalent to an atomic groupMoritz Lenz2008-01-061-1/+1
| | | | | Message-ID: <477FACF4.5030801@casella.verplant.org> p4raw-id: //depot/perl@32872
* Doc nits -- avoid bare "5.10" version numbers without aRafael Garcia-Suarez2007-11-271-13/+13
| | | | | third component. (Suggested by Jarkko) p4raw-id: //depot/perl@32523
* Document bug #47762, and mention %-Rafael Garcia-Suarez2007-11-251-3/+6
| | | p4raw-id: //depot/perl@32484