• 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 18:17:27 +0100


On 6 May 2007, at 16:35, Jeffrey Oleander wrote:

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...

Maybe I will, maybe I will.

I find this severely limits the usefulness of regular expression searching, and I usually go back to CodeWarrior for any big RE manipulation.

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


References: 
 >Re: Strangeness of "next" regular expression (From: Jeffrey Oleander <email@hidden>)

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