ENH: Improve perf of str_extract
Merge pull request #5944 from unutbu/str-extract

ENH: Improve perf of str_extract