Extract String regexp definition in public constant