regEx pattern for checking if sting starts with a certain substring?
Posted
by kacalapy
on Stack Overflow
See other posts from Stack Overflow
or by kacalapy
Published on 2010-05-01T16:49:14Z
Indexed on
2010/05/01
16:57 UTC
Read the original article
Hit count: 263
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?
© Stack Overflow or respective owner