Strangeness of "next" regular expression
Strangeness of "next" regular expression
- Subject: Strangeness of "next" regular expression
- From: Christopher Henrich <email@hidden>
- Date: Sat, 05 May 2007 21:34:38 -0400
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. |
_______________________________________________
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