The difference of carriage return among OS(regexp)

Tomoharu Tsutsumi
1 min readFeb 16, 2019

When coding the GAS, I couldn’t find the information and got worried about this problem(my code had the error, it is “can’t get specific string” ).

・linux => \n

・windows => \r\n

・mac => \r

--

--

Tomoharu Tsutsumi
Tomoharu Tsutsumi

Written by Tomoharu Tsutsumi

5+ years Full Stack SWE (Ruby, Go, TypeScript, JavaScript) | Former Founding Engineer of AI Startup in Canada

No responses yet