Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 232693a760a8784e78833baa18ea3629c7853bee62a060161e984170fb2bc5bb
Ticket: 884d0ac78cbab248d054ec96d13c2a741bb0a94c
Unexpected string-start constraint match in middle of string after newline
User & Date: tgl on 2021-02-20 21:37:20
Changes

  1. icomment:
    FWIW, I can't reproduce this misbehavior in current Postgres: I get a correct-looking result from
    
    # select regexp_replace(E'foo\nbar', '^|\n', E'\nXX', 'g');
     regexp_replace 
    ----------------
                   +
     XXfoo         +
     XXbar
    (1 row)
    
    I speculate that it got fixed as a side-effect of the constraint loop fixes we did awhile ago.
    I thought you guys had absorbed those, though.
    
  2. login: "tgl"
  3. mimetype: "text/plain"