expand regexp