regular expression search

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
richard30004
New Member
Posts: 2
Joined: Fri Mar 14, 2008 11:12 am

regular expression search

Post 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.
User avatar
psguru
Site Admin
Posts: 2234
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: regular expression search

Post 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
psguru
PrestoSoft
User avatar
psguru
Site Admin
Posts: 2234
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: regular expression search

Post by psguru »

The latest build (4.0.1.8 ) contains the fix.
psguru
PrestoSoft
richard30004
New Member
Posts: 2
Joined: Fri Mar 14, 2008 11:12 am

Re: regular expression search

Post 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!
Post Reply