Re: Strangeness of "next" regular expression
Re: Strangeness of "next" regular expression
- Subject: Re: Strangeness of "next" regular expression
- From: Jerry <email@hidden>
- Date: Sun, 6 May 2007 08:33:38 +0100
On 6 May 2007, at 02:34, Christopher Henrich 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.
For instance, if I am searching for a period, with the regex \. or [.], and am just before a line like this:
* @param set The set to use. Will be retained by receiver. Can be null.
then I find the period after "use" but not that after "receiver" or that after "null". If I break the line at "Will", then I can find the period after "receiver".
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.
There's no workaround for "Replace All" with regular expressions though, unless someone knows of one.........
Jerry
|
_______________________________________________
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