regEx pattern for checking if sting starts with a certain substring?
- by kacalapy
whats the regEx to check if a sting starts with "mailto" or "ftp" or "joe" or...
now i am using c# and code like this in a bif if with many OR's:
String.StartsWith("mailto:")
String.StartsWith("ftp")
and looks like regEx would be better for this, or is there a c# way i am missing here?