to any regex ninja out there.
I’m trying to make a regex to grab only the repository name from different git urls
example inputs
https://github.com/dimitre/ofxMicroUI
git@github.com:astellato/ofxSyphon.git
http://github.com/dimitre/ofxTools
example outputs
ofxMicroUI
ofxSyphon
ofxTools
the one I’m working now is simple, but there is something missing there, the result is outputting ofxSyphon.git instead of ofxSyphon
std::regex findRepository("([^/]+)(\.git)?$");
Thank you!