Hacker News new | ask | show | jobs
by depressed 2627 days ago
Searching with regexes is more likely to be useful when trolling through log or data files than code.

Even then, the most common cases for me are searching for a string only at the beginning or ending of a line, or only searching for instances that are not part of a larger word.

1 comments

I search for /def.*partial_name/ frequently when I can’t quite remember what a method is called in Ruby.