3 ms·
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
by depressed 7y 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.
- joevandyk 7y agoI search for /def.*partial_name/ frequently when I can’t quite remember what a method is called in Ruby.