Again,, thought this would be pretty easy just looking to throw a message box if a special character is found..
Using this starter code, it works if only one special character is used, but with multiple characters, does not throw message box.
Example ------- > : <---------Works
Example -------> :::: <---------Does not work
if(":/~/^\*$/".ToCharArray() -Contains $Sub){
[System.Windows.Forms.MessageBox]::Show("Special Characters are not supported", "Informational")
return
}
Djoe