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 6760319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:03:04+00:00 2026-05-26T14:03:04+00:00

Now that my code is getting ever larger, a strategy to locate key code

  • 0

Now that my code is getting ever larger, a strategy to locate key code locations is more important. With faster PC’s now, ‘Search’ ‘Find in Files’ is quick and effective – ‘Search all files in project’ often does not work if you have used implicit units. I’ve struggled to understand regular expressions but presumably they would let me do a search like:

one OR two

one AND two

All searches are required to be on the same line.

This would be a great improvement on a simple keyword search. Is this possible in Delphi’s search? I’m using XE, XE2 and D7 (sometimes).

  • 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-26T14:03:04+00:00Added an answer on May 26, 2026 at 2:03 pm

    The regular expression you need to search for one or two is

    one|two
    

    The | symbol means or in regex speak.

    Searching for a file containing both one and two is more difficult since the search is line-oriented. You could search for one and two on the same line like this:

    one.*two|two.*one
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm finally getting my team to embrace source code management now that we're working
For months now I've been trying to find a code syntax formatting extension that
I have some code right now that executes when a link is clicked. The
Following on from this question I now have code that can attach to a
I have an odd edge case right now in that a response code from
I have code that dynamically load 10 different textfields in viewdidload method now if
Right now, I have code that looks something like this: Private Sub ShowReport(ByVal reportName
While refactoring code and ridding myself of all those #defines that we're now taught
Say that I have the following code: ExecutorService executor = Executors.newSingleThreadExecutor(); executor.execute(myRunnable); Now, if
Right now i have a line of code, in vb, that calls a text

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.