A single regex may not be enough. You could try to adapt a script from the Custom Tools menu, i.e. the My Paratext Projects/cms/ subdirectory.