develooper Front page | perl.perl5.porters | Postings from September 2014

Re: [perl #122853] Guarantee 0-9, A-Z, a-z character classes

Thread Previous | Thread Next
Rafael Garcia-Suarez
September 26, 2014 08:57
Re: [perl #122853] Guarantee 0-9, A-Z, a-z character classes
Message ID:
On 26 September 2014 10:49, Ed Avis <> wrote:
> This bug report is to request that Perl guarantee in its documentation
> the following equivalences:
>    [a-z]    [abcdefghijklmnopqrstuvwxyz]
>    [0-9]    [0123456789]
> If the EBCDIC port is still active, then some programming work might
> be needed to make sure these ranges do as documented on EBCDIC.

Actually perlebcdic documents those special cases already ([0-9] not
being a problem there):


As of perl 5.005_03 the letter range regular expressions such as
[A-Z] and [a-z] have been especially coded to not pick up gap
characters.  For example, characters such as E<ocirc> C<o WITH CIRCUMFLEX>
that lie between I and J would not be matched by the
regular expression range C</[H-K]/>. [...]

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About