init with regex import