PathEscaper.EscapeRegex
Static Method in PathEscaper
Declaration
public static Regex EscapeRegex(string escapeCharacter, string invalidCharacters)
Description
Creates a regex for escaping paths.
Parameters
escapeCharacter | The character used to replace invalid characters, e.g. "_". |
invalidCharacters | The invalid characters that will be replaced by the escaped character. |
Returns
Regex | The escape regex. |