• 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
Regular Expressions Back-references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regular Expressions Back-references


  • Subject: Regular Expressions Back-references
  • From: Jens Miltner <email@hidden>
  • Date: Wed, 20 Apr 2005 12:05:28 +0200

Hello list,

I can't get regexp back references in my replacement strings to work in Xcode.
Some time ago, Florian posted the following question, which describes the problem well, but AFAICS, he didn't receive any answer, at least not on the list.
Can anybody answer this question or doesn't Xcode support back references / capture group references at all?

Thanks,
</jum>

Anfang der weitergeleiteten E-Mail:

Von: Florian Bischof <email@hidden>
Datum: 29. Oktober 2004 16:04:14 MESZ
An: email@hidden
Cc: Betreff: Regular Expressions Back-references
X-Mailer:
Apple Mail (2.619)

I'm having trouble using back-references in a Regular Expression find & replace.
I tried the backslash and dollar-syntax, both didn't work as expected:
Xcode just replaced the matched strings with the replace-RegEx without match-substitution...

Find: alt="(.*)"
Replace: alt="\1" title="\1"

Am I missing something?

Thanks

Florian Bischof
 _______________________________________________
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: Regular Expressions Back-references
      • From: Tom Naughton <email@hidden>
  • Prev by Date: Re: Where does "version" come from?
  • Next by Date: Link error
  • Previous by thread: Re: Problem in linking bundle in Xcode
  • Next by thread: Re: Regular Expressions Back-references
  • Index(es):
    • Date
    • Thread