Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6816135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:53:23+00:00 2026-05-26T20:53:23+00:00

In xCode I want to look for my NSLog statements that are not prefaced

  • 0

In xCode I want to look for my NSLog statements that are not prefaced by a { from the previous line.

So I want to not find:

if (debug) {
    NSLog(@"MyDebug");
}

and only find.

  x=y+3;
  NSLog(@"MyDebug %d",x);

I was thinking something like : (?<!\{\r.*NSLog).*NSLog or (?<!\{)\r.*NSLog(?!\{) though that does not seem to get me anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:53:23+00:00Added an answer on May 26, 2026 at 8:53 pm

    As Jeremy mentioned in the comments, Xcode doesn’t support regexes that match multiple lines. However, according to this message in a thread on xcode-users, you can search for newline characters using non-regex search:

    Xcode’s Find and Project Find don’t support multiline regular
    expressions. They do support multiline text find…

    (A subsequent message in the thread indicates that you can type a newline using option–return.)

    If you know the line above the one you wish to match will always end with ;, you could leverage that in a non-regex search.

    As for grep, unfortunately it doesn’t really like to match multiple lines. pcregrep may be more useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to change order in plist file not programmatically but from xcode. Is
I want to make a function that is always running in xcode similar to
I've tried to look over but couldn't find what I really want. I'm planning
The documentation Browser of Xcode is not aware of malloc. I want to read
I want to change the default behavior of XCode (4) for aligning brackets from
I want to create a new project in Xcode (4.2), but I don't need
I want use BYTE_ORDER macro in my Xcode project but i can't because i
I want to export my simple application in xcode 4.33 But I failed to
I want to develop a Safari plugin using Xcode, and I want to access
I am using XCode 4.3.3 and want to include custom frameworks (in my case

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.