Hi I am a university student and today my lecturer gave me a topic to do a research under the topic of “dir regular expression”. I am really confused and need details about this. So if anybody has knowledge about this, help me Thanks
What is mean by the dir regular expression for directory names?
Dir (Directory) Regular Expression or (Regex) is a type of search and match algorithm that programmers used to match in this case a string into and existing directory or file, for example if you want to find “Windows File Name” somewhere in you program you will have this kind of expression “(?i)^(?!^(PRN|AUX|CLOCK$|NUL|CON|COMd|LPTd|..*)(..+)?$)[^\./:*?"<>|][^\/:*?"<>|]{0,254}$” the resulting output limits the result to windows file types only.
What is mean by the dir regular expression for directory names?
Directory regular expression or Regex is simply regular expressions for naming directories. There are specific rules and restrictions associated with it,especially with different platforms and programming languages. It is used as a constructor class in Microsoft programming languages such as C#, C++, F#, and Visual Basic. I can provide a documentation on this with the link below:
https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.aspx