I'm working on an app that needs to accept a RegEx from the user, to do so I'm using the following code:
Regex user_searchPattern = new Regex(this.userInput_regEx.Text);
Is doing this safe?
Is there a need to sanitize the user input, and if so how?