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).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With