Voted regexes, but it was actually the other way around. I had developed a taste for vi and started learning about regexes to give me additional vi tricks, then discovered that there was a programming language which also had exceptional regex support and checked out Perl to see what it had to offer.