Re: Strangeness of "next" regular expression
Re: Strangeness of "next" regular expression
- Subject: Re: Strangeness of "next" regular expression
- From: Jeffrey Oleander <email@hidden>
- Date: Sun, 6 May 2007 08:35:57 -0700 (PDT)
> Christopher Henrich <email@hidden> wrote:
> I am working my way through /Beginning/ /Xcode/ by James
> Bucanek, and have come to the treatment of searching for
> regular expressions. It seems as if hitting the "Next"
> button finds the next occurrence of a regular expression
> beginning at the *end* of the current line...
> Is this a feature?? Is there a way to turn it on or off?
>
> Hah! I just found a way to defeat it! After finding one
> occurrence, I set the cursor after what I have just
found.
> Then getting the "next" occurrence works as I expected.
> So this looks to me like a feature with a work-around.
In SED there's the g switch to tell it to, e.g. make a
substitution to every occurrence of the pattern on every
indicated line. If you don't specify the g, it has the
behavior you're seeing.
So, the GUI is behaving in an analogous way, but does not
have the equivalent of that g switch. File a bugreport...
You've reminded me of one I need to submit. I'd like to
see the "find in project" have a replace and find next
feature for those times when I want to replace most but not
all occurrences of something.
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden