Artifacts Associated With Ticket 1513763fffffffffffffffffffffffffffffffff
Ticket change [204a8587b3] (rid 91288) by nobody on 2006-06-28 05:20:42:
- assignee initialized to: "pvgoran"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When I use regexp {^(oo+?)(\1)*$} to verify a number is prime or not. The result was abnormal. I use another script like perl, python ... It does work. - foundin initialized to: "obsolete: 8.4.13"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "43. Regexp"
- title initialized to: "The result of regexp is abnormal"
- type initialized to: "Bug"
Ticket change [db7e2fe903] (rid 107973) by nobody on 2006-06-28 12:20:42:
- icomment:
File Added - 183214: prime.tcl
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Add attachment "prime.tcl" [0b50f58abf] (rid 113961) by nobody on 2006-06-28 12:20:42.
Ticket change [b392a22a3e] (rid 124881) by dkf on 2006-06-28 15:45:47:
- closedate changed to: "2006-06-28T08:45:47"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 I've no idea what the above regular expression is trying to achieve, since it will match any non-empty sequence of 'o' characters (the * allows bits to be ignored). However, if I use: ^(oo+?)\1+$ as the RE (dropping one set of parens for simplicity and changing to using a +) then I get a perfectly adequate non-prime detector. % info patch 8.4.7 % #Print the lowest prime factor of 169... % string length [lindex [regexp -inline {^(oo+?)\1+$} [string repeat o 169]] 1] 13 Looks like pilot error to me. - login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Pending"
- username: "dkf"
Ticket change [9a99d2059f] (rid 110974) by sf-robot on 2006-07-13 09:20:18:
- closedate changed to: "2006-07-13T02:20:18"
- closer changed to: "sf-robot"
- icomment:
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"