Regular expression search in Xcode

One thing we may overlook when perform searching within Xcode is Regular Expression. We can use it in Find navigator or in document search

And, we can use it in Find and Replace as well

I find it especially useful when searching for things that can cause slow compile time https://medium.com/swift-programming/swift-build-time-optimizations-part-2-37b0a7514cbe#.3bk18xlw9

You can use https://regex101.com/ to help you check your expression

Find dictionary type inference

You can find these

with let .* = \[

Find nil coalescing operator

You can find these

with .* \?\? .*

Read more

Like what you read? Give Khoa Pham a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.