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
oneortwoisThe
|symbol meansorin regex speak.Searching for a file containing both
oneandtwois more difficult since the search is line-oriented. You could search foroneandtwoon the same line like this: