Overview
| Artifact ID: | 35bdf3924836d110117106e43a17523cddb283b9 |
|---|---|
| Ticket: | 05beaa6eef4fdb97d6fb518f0508c108c010c548
regexp fails to match braces inside a character class |
| User & Date: | ericp on 2014-02-15 01:54:00 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/html"
- comment changed to:
<p>I want to match a set of characters including letters, spaces, brackets and braces between two words: <pre> % set ptn {the ([\w\{\}\[\]\s]+) test} the ([\w\{\}\[\]\s]+) test # Words and spaces match % regexp -inline $ptn {the abc def test} {the abc def test} {abc def} # Words and square brackets match % regexp -inline $ptn {the abc][def test} {the abc][def test} {abc][def} # Even a single square bracket will match % regexp -inline $ptn {the [ test} {the [ test} {[} # But tcl fails to match braces: % regexp -inline $ptn {the abc\}\{def test} % regexp -inline $ptn {the abc\{def test} % regexp -inline $ptn {the \{ test} </pre> - foundin changed to: "8.6"
- is_private changed to: "0"
- login: "ericp"
- priority changed to: "5 Medium"
- private_contact changed to: "6d1053e9208f1074fd485c15cc0d7e49e190bac5"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "ericp"
- subsystem changed to: "43. Regexp"
- title changed to:
regexp fails to match braces inside a character class
- type changed to: "Bug"