#34 Error in regex help for \l and \L

closed-fixed
5
2002-02-07
2001-06-11
No

The help on Regex states that:

" These escape sequences can also be used within a
character
class. For example, `[\l_]' is the same as
`[a-zA-Z_]'"

Two errors here:
\l actually matches any letter, including international
and
accented ones. I'm guessing it is locale dependent like
it is in Perl.

At least it has the same limitation, causing error #2:
using it to construct character classes does _not_
work.

Correspondingly for \L.

Discussion

  • Joachim Lous

    Joachim Lous - 2001-08-10

    Logged In: YES
    user_id=82866

    Oops, part two is wrong. You _can_ use it in character classes.
    The first part about the locale still stands, though.

     
  • Alexander Mai

    Alexander Mai - 2001-08-27
    • labels: --> Documentation
     
  • Alexander Mai

    Alexander Mai - 2001-08-27

    Logged In: YES
    user_id=15180

    Well, if the beta branch is certainly open
    to documentation fixes ...

     
  • Eddy De Greef

    Eddy De Greef - 2002-02-07

    Logged In: YES
    user_id=73597

    Just committed a fix to help.etx.
    Can be closed.

     
  • Alexander Mai

    Alexander Mai - 2002-02-07
    • assigned_to: nobody --> edg
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks