Re: RegExp search and replace?
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