• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strangeness of "next" regular expression
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Strangeness of "next" regular expression
      • From: Chris Espinosa <email@hidden>
References: 
 >Strangeness of "next" regular expression (From: Christopher Henrich <email@hidden>)

  • Prev by Date: Re: options for generating pbxproj files
  • Next by Date: Re: options for generating pbxproj files
  • Previous by thread: Strangeness of "next" regular expression
  • Next by thread: Re: Strangeness of "next" regular expression
  • Index(es):
    • Date
    • Thread