Replace RE with glob expressions