Page 1 of 1

regular expression search

Posted: Fri Mar 14, 2008 11:23 am
by richard30004
I'm using the following regular expression search
on.*request
with which I expect to find the following phrases (as examples):
OnActivationRequest(
OnReloadRequest(

However, when starting from the top of the file, I'm locating the first instance of "on" in the file, and highlighting everything following up to (and including) the last occurrence of "request" in the file, spanning many, many lines. I only want to find that expression on one line at a time.

I've tried lots of different things, but nothing seems to limit the find to just one line at a time. I would appreciate some help on this.

Thanks.

Re: regular expression search

Posted: Fri Mar 14, 2008 3:51 pm
by psguru
This looks like a bug; we'll try to fix it in the next build. In the meantime use the following non-greedy regex:

on.*?request

Re: regular expression search

Posted: Fri Mar 14, 2008 7:18 pm
by psguru
The latest build (4.0.1.8 ) contains the fix.

Re: regular expression search

Posted: Mon Mar 17, 2008 9:38 am
by richard30004
The suggestion, on.*?request, didn't work any differently. By the way, I'm using 3.5.1.5, 5/26/2007. I'll try the suggested version. Thanks for your help!