i need a regex that matches either /ABC/ or /ABC/DEF/ I came up with /(.*)/(.*)/ how do i make the second part optional? thx Tem