Artifacts Associated With Ticket 219264ffffffffff
Ticket change [cd867cb2f3] (rid 95905) by nobody on 2000-10-26 05:09:33:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1059 RFE Version: 8.1b1 SubmitDate: '1999-01-15' LastModified: '1999-08-04' Severity: LOW Status: UnAssn Submitter: pat ChangedBy: stanton OS: Windows NT OSVersion: 4.0; I also use MacOS 8.5.1 Machine: X86 FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: vince darley Extensions: none DesiredBehavior: regexps only find the first match in the given text; it would be very useful to be able to have a '-backwards' flag which started searching from the end of the given string. As well as being a useful feature, this addition would speed up backwards searches in the Text widget, which currently pretends to search backwards by repeating forward searches until it can't find another forward match. In Tcl 8.0 it was reasonably easy to write one's own 'regexec' function which matched backwards instead of forwards (using the built in regexp procedures). However the new regexp code in Tcl 8.1 is so complex it's not clear how to do that any more (although I love the new regexp features). Probably it still isn't conceptually that difficult for someone who actually understands that code ;-)
- foundin initialized to: "obsolete: 8.1b1"
- 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:
Would like regexps to accept a -backward flag for searching
- type initialized to: "RFE"
Ticket change [c2792b8ebc] (rid 111491) by dkf on 2000-11-10 17:16:00:
- icomment:
You could instead (especially on shorter search spaces) get regexp to return the list of all the indices for matches which it found up to the point you are interested (selecting that part of the string with [string range] of course.) Not perfect by any means, but may help some people. Or you could reverse the string, but this is yet another tactic that doesn't scale well. Ho hum...
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "4"
- username: "dkf"
- icomment:
Ticket change [8a6eece234] (rid 127391) by hobbs on 2001-08-02 08:45:21:
- foundin changed to: "None"
- subsystem changed to: "None"
Ticket change [56165d9b28] (rid 94260) by dgp on 2003-11-13 06:09:34:
- assignee changed to: "pvgoran"
- subsystem changed to: "43. Regexp"
Ticket change [c7477cfaf8] (rid 121903) by hobbs on 2008-03-13 02:53:42:
- closedate changed to: "2008-03-12T19:53:42"
- closer changed to: "hobbs"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"