Reputation: 31
I have the following string in several places throughout a massive HTML file: <div class="author">Some Author's Name</div>
. I want to replace that with <author>Some Author's Name</author>
and obviously adjust the corresponding CSS classes.
Is it possible to do that in a single Find and Replace in Xcode 6.1 without having to go through line by line?
Upvotes: 1
Views: 110
Reputation: 29431
I recommend you this article replace with regex in XCode.
Use the regex <div class="author">(.*)</div>
to find your entities and replace with <author>$1 </author>
Upvotes: 2