regex filters (#432): scan, splits, split, sub, gsub

split is for backward compatibility; splits is a generator.

nwise is a helper function but it seems useful enough so it is at the top-level.

Documentation and tests have been updated, but the documentation in particular might need tweaking.