If requested, limit search length.
Limit regex search for BEGIN to the first 4K of the file.
Update regex recommendation.
document regex limit.
Merge remote-tracking branch 'upstream/master'
merge with upstream