Mailing Lists: Apple Mailing Lists

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

Regular Expressions Back-references



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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.