• 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: RegExp search and replace?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RegExp search and replace?


  • Subject: Re: RegExp search and replace?
  • From: James Bucanek <email@hidden>
  • Date: Mon, 10 Jul 2006 07:19:30 -0700

Fredrik Olsson wrote on Monday, July 10, 2006:

>How do I (or can I) search and replace with regular expression capture
>groups?

    search: regex(regex)regex(regex)

    replace text\1text\2

Example:

    text:       kFingerOne = 1,
                kFingerTwo,
                kFingerThree

    regex:      kFinger(.*)\b

    replace:    kToe\1

    results:    kToeOne = 1,
                kToeTwo,
                kToeThree

James Bucanek
____________________________________________________________________
Author of Beginning Xcode                           ISBN: 047175479X
<http://www.beginningxcode.com/>
 _______________________________________________
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: 
 >RegExp search and replace? (From: Fredrik Olsson <email@hidden>)

  • Prev by Date: Re: How to lipo ?
  • Next by Date: Per-Target Copy Files
  • Previous by thread: RegExp search and replace?
  • Next by thread: Per-Target Copy Files
  • Index(es):
    • Date
    • Thread