Re: Find-and-replace using regular expressions
Re: Find-and-replace using regular expressions
- Subject: Re: Find-and-replace using regular expressions
- From: Mark Wagner <email@hidden>
- Date: Tue, 30 Jun 2009 15:32:59 -0700
On Tue, Jun 30, 2009 at 15:18, Chris Espinosa<email@hidden> wrote:
>
> On Jun 30, 2009, at 3:03 PM, Mark Wagner wrote:
>
>> How can I do a find-and-replace using a regular expression to decide
>> what to replace with? In Perl, I'd use the following:
>>
>> s/PG_PASCAL \((.*?)\)/$1/g
>>
>> How would I do this using Xcode?
>
> You'd read the Xcode documentation on "regular expression":
>
> http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeWorkspace/100-The_Text_Editor/ed_editor_window.html#//apple_ref/doc/uid/TP40002679-SW19
I've read that. It doesn't say what I put in the "replace" field to
use the text that matches "(.*?)" as my replacement text.
--
Mark Wagner
_______________________________________________
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