Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 410df2c1d1e80549e312a3b8d49e98886850315d
Ticket: 1822052fffffffffffffffffffffffffffffffff
regexp feature to specify a default value for subMatchVar's
User & Date: meliorator on 2007-10-29 11:46:12
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When matching with an expression that has optional parenthesized subexpressions, it would be useful if a value for the relevant subMatchVar could be set, in the eventuality that the subexpression was not matched.
    
    Example:
    regexp {(foo)(bar)?} foobar matchVar subMatchVar1 {subMatchVar2 bar}
    
    This would set the value of subMatchVar2 to bar, whether it matched it or not. It is a rather basic example of the feature that I would like to use in much more complex expressions.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "meliorator"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to:
    regexp feature to specify a default value for subMatchVar's
    
  12. type changed to: "RFE"