• 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: Where is Xcode's find's regular expression syntax documented?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is Xcode's find's regular expression syntax documented?


  • Subject: Re: Where is Xcode's find's regular expression syntax documented?
  • From: glenn andreas <email@hidden>
  • Date: Fri, 7 Jul 2006 15:06:02 -0500


On Jul 6, 2006, at 12:54 PM, JohnG Otto wrote:

Where is the regular expression syntax that is used by Xcode's find documented?

"man re_format"


My immediate task is to convert some dates in HTML files from inside-out to ISO format
i.e. from 07/06/2006 to 2006-07-01


and have tried things like
\(:d:d\)\/\(:d:d\)\/\(:d:d:d:d\)
and
\([0-9][0-9]\)\/\([0-9][0-9]\)\/\([0-9][0-9][0-9][0-9]\)
for the search specification

with

\3-\1-\2
and
$3-$1-$2
and
$4-$3-$2
for the replace specification, but it apparently does not like sub- matches bracketed with \( and \), and without sub-matches, I can't use the sub-matched buffers in the replace.

I just tried:

([0-9][0-9])/([0-9][0-9])/([0-9][0-9][0-9][0-9])

and

\3-\1-\2

and it worked fine - I don't think you want to escape the parens (since would mean that you'd be looking for literal parens and not grouping).



Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets

_______________________________________________
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: 
 >Where is Xcode's find's regular expression syntax documented? (From: JohnG Otto <email@hidden>)

  • Prev by Date: Where is Xcode's find's regular expression syntax documented?
  • Next by Date: Re: Any way to journal or trace an IDE crash?
  • Previous by thread: Where is Xcode's find's regular expression syntax documented?
  • Next by thread: Re: Where is Xcode's find's regular expression syntax documented?
  • Index(es):
    • Date
    • Thread