Skip to content
Tcl Source Code Artifact [35bdf39248]
Login

Artifact [35bdf39248]

Artifact 35bdf3924836d110117106e43a17523cddb283b9:

Ticket change [35bdf39248] - New ticket [05beaa6eef4fdb97|05beaa6eef] <i>regexp fails to match braces inside a character class</i>. by ericp on 2014-02-15 01:54:00.
D 2014-02-15T01:54:00.843
J assignee nobody
J closer nobody
J cmimetype text/html
J comment <p>I\swant\sto\smatch\sa\sset\sof\scharacters\sincluding\sletters,\r\nspaces,\sbrackets\sand\sbraces\sbetween\stwo\swords:\r\n\r\n<pre>\r\n%\sset\sptn\s{the\s([\\w\\{\\}\\[\\]\\s]+)\stest}\r\nthe\s([\\w\\{\\}\\[\\]\\s]+)\stest\r\n\r\n#\sWords\sand\sspaces\smatch\r\n%\sregexp\s-inline\s$ptn\s{the\sabc\sdef\stest}\r\n{the\sabc\sdef\stest}\s{abc\sdef}\r\n\r\n#\sWords\sand\ssquare\sbrackets\smatch\r\n%\sregexp\s-inline\s$ptn\s{the\sabc][def\stest}\r\n{the\sabc][def\stest}\s{abc][def}\r\n\r\n#\sEven\sa\ssingle\ssquare\sbracket\swill\smatch\r\n%\sregexp\s-inline\s$ptn\s{the\s[\stest}\r\n{the\s[\stest}\s{[}\r\n\r\n#\sBut\stcl\sfails\sto\smatch\sbraces:\r\n%\sregexp\s-inline\s$ptn\s{the\sabc\\}\\{def\stest}\r\n%\sregexp\s-inline\s$ptn\s{the\sabc\\{def\stest}\r\n%\sregexp\s-inline\s$ptn\s{the\s\\{\stest}\r\n</pre>
J foundin 8.6
J is_private 0
J login ericp
J priority 5\sMedium
J private_contact 6d1053e9208f1074fd485c15cc0d7e49e190bac5
J resolution None
J severity Important
J status Open
J submitter ericp
J subsystem 43.\sRegexp
J title regexp\sfails\sto\smatch\sbraces\sinside\sa\scharacter\sclass
J type Bug
K 05beaa6eef4fdb97d6fb518f0508c108c010c548
U ericp
Z ec10f651a8749e5680e506e7ad63d857