Current version

Jan 22, 2019 6:32 PM
Lol... why'd I have to add more complexity to it. So user types ///admissions/index.html by accident, / // is captured once, / // is captured in the second group. I tried (\/{1})([^\/].*[^\/])$ which feels a bit overkill, but is still matching ///admissions/index.html
 

Message history

Jan 22, 2019 6:34 PM
edited: Lol... why'd I have to add more complexity to it. So user types ///admissions/index.html by accident, **/** // is captured once, / **//** is captured in the second group. I tried `(\/{1})([^\/].*[^\/])$` which feels a bit overkill, but is still matching `///admissions/index.html`
 
Jan 22, 2019 6:33 PM
edited: Lol... why'd I have to add more complexity to it. So user types ///admissions/index.html by accident, `**/**//` is captured once, `/**//**` is captured in the second group. I tried `(\/{1})([^\/].*[^\/])$` which feels a bit overkill, but is still matching `///admissions/index.html`
 
Jan 22, 2019 6:33 PM
edited: Lol... why'd I have to add more complexity to it. So user types ///admissions/index.html by accident, **/** // is captured once, / **//** is captured in the second group. I tried `(\/{1})([^\/].*[^\/])$` which feels a bit overkill, but is still matching `///admissions/index.html`
 
Jan 22, 2019 6:32 PM
said: Lol... why'd I have to add more complexity to it. So user types ///admissions/index.html by accident, **/**// is captured once, /**//** is captured in the second group. I tried `(\/{1})([^\/].*[^\/])$` which feels a bit overkill, but is still matching `///admissions/index.html`