Compile trim edeges regex object.