\begin{quote}
Regular expression for matching reserved filename characters \end{quote}
On Unix-\/like systems {\ttfamily /} is reserved and \href{http://msdn.microsoft.com/en-us/library/aa365247\%28VS.85\%29\#naming_conventions}{\texttt{ {\ttfamily $<$$>$\+:"{}/\textbackslash{}$\vert$?$\ast$}}} on Windows.\hypertarget{md_sfcode_node_modules_filename_reserved_regex_readme_autotoc_md10518}{}\doxysection{Install}\label{md_sfcode_node_modules_filename_reserved_regex_readme_autotoc_md10518}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save filename-\/reserved-\/regex }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_filename_reserved_regex_readme_autotoc_md10519}{}\doxysection{Usage}\label{md_sfcode_node_modules_filename_reserved_regex_readme_autotoc_md10519}

\begin{DoxyCode}{0}
\DoxyCodeLine{var filenameReservedRegex = require('filename-\/reserved-\/regex');}
\DoxyCodeLine{}
\DoxyCodeLine{filenameReservedRegex().test('foo/bar');}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{filenameReservedRegex().test('foo-\/bar');}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{'foo/bar'.replace(filenameReservedRegex(), '!');}
\DoxyCodeLine{//=> foo!bar }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_filename_reserved_regex_readme_autotoc_md10520}{}\doxysection{License}\label{md_sfcode_node_modules_filename_reserved_regex_readme_autotoc_md10520}
MIT © \href{http://sindresorhus.com}{\texttt{ Sindre Sorhus}} 