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

You can use 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.