Is there a possibility to use Regex for finding matching string between two dots?
I have strings with direcotries and I need to find string between two dots. Eg: $string = '/Folder/file.co.txt'; and regex will return ONLY co between two dots. I've tried following pattern: '/..../', but it returned .co. with dots.
Is there a possibility to do this with regex or all I can do is splice returned string?