I have a project composed of many extensions. And these extensions use all 3 line ending types. But the server can work only with 2.
I have an editor that can change lin
This can be done for example with text editor UltraEdit.
\r?\n|\r\r\n to convert in all files all line endings to DOS/Windows or just \n for Unix line endings.*.* or just * or whatever is suitable to match only text files and exclude binary files. Multiple file extensions can be also specified by separating them with a semicolon like *.txt;*.htm?;*.phpThe Perl regular expression search string \r?\n|\r matches either a carriage return and linefeed pair (CRLF - DOS/Windows), or just a linefeed (LF - Unix), or just a carriage return (CR - Mac).
All matching files will have a new modification date after running that Perl regular expression Replace All because the search expression finds all 3 line ending types.
But it is also possible to convert only all DOS/Mac files to Unix by using as search string \r\n|\r and \n as replace string. The files containing only linefeeds and therefore being already Unix files are not modified by using this search expression.
Use (? as search string and \r\n as replace string to convert only all Unix/Mac files to DOS/Windows. Files containing already only \r\n are not modified by this search expression.