From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,903de1597bba5a2e,start X-Google-Attributes: gid103376,public X-Google-Thread: f8362,903de1597bba5a2e,start X-Google-Attributes: gidf8362,public From: srini Subject: Search Up Date: 2000/11/22 Message-ID: <3A1BF2E3.F2C51F59@worldnet.att.net>#1/1 X-Deja-AN: 696638071 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 974899240 12.77.89.232 (Wed, 22 Nov 2000 13:20:40 GMT) Organization: AT&T Worldnet MIME-Version: 1.0 NNTP-Posting-Date: Wed, 22 Nov 2000 13:20:40 GMT Newsgroups: comp.theory,comp.lang.ada Date: 2000-11-22T00:00:00+00:00 List-Id: folks, Can anyone please give me a hint as to how I will solve this problem : I am developing an editor. It has the ability to "search" for a given regular expression. Now, I would like to add the ability to search backwards from a given position. I guess it is really not backwards but the last occurance of the expression. Perhaps I can reverse the string, reverse the regex and then compile the regexp and search. Will this be valid? Any and all hints would be welcome. regards srini