Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regular Expressions Back-references



In Xcode 1.5 regular _expression_ capture group references work in the Project Find panel, but are ignored in Single File Find. This has been fixed for the next release.
 
Tom

On Apr 20, 2005, at 3:05 AM, Jens Miltner wrote:

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Regular Expressions Back-references (From: Jens Miltner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.