Make source regex configurable.