Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6e95fe7d69e37befb673b1ea004f78a38c7270a0aa377bd257938ffb7ddac412
Ticket: 8663689908d3304a74fee525cd04aa4162e86391
regexp \\w missing characters
User & Date: jan.nijtmans on 2021-03-18 14:47:22
Changes

  1. closedate changed to: "2459292.11623521"
  2. closer changed to: "jan.nijtmans"
  3. icomment:
    > Something in this collection of facts isn't right.
    
    Indeed, in this case the documentation is not correct. In the pre-unicode world, "word" characters were [a-zA-Z0-9_]. This is indeed the alphanumeric characters and the underscore.
    
    In the Unicode world, "word" characters are the alphanumeric characters and the "CONNECTOR_PUNCTUATION" characters (Pc). That's the underscore, but also 9 more:
    
    UNDERTIE ‿
    CHARACTER TIE ⁀
    INVERTED UNDERTIE ⁔
    PRESENTATION FORM FOR VERTICAL LOW LINE ︳
    PRESENTATION FORM FOR VERTICAL WAVY LOW LINE ︴
    DASHED LOW LINE ﹍
    CENTRELINE LOW LINE ﹎
    WAVY LOW LINE ﹏
    FULLWIDTH LOW LINE _
    
    
    So, the documentation should be adapted. The implementation is already doing this correctly. Done now in core-8-6-branch and up.
    
  4. login: "jan.nijtmans"
  5. mimetype: "text/x-fossil-wiki"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"