"Saradhi" <up*******@inooga.com> wrote in message news:<#k**************@TK2MSFTNGP09.phx.gbl>...
I want to check for a conditon as follows:
if ( name Like "sa*")
So, I need to use this * as a wild card and the above statement should
return all those names which starts with sa.
I know that VB Like operator will do this one.
I want to know whether we have any similar one in C#?
--
Hi,
in case you don't want to use VB specific things regular expressions
can be used, imo regular expressions are essential, I use it regularly
if (System.Text.RegularExpressions.Regex.Match("samsg sgs","sa.*").Success)
MessageBox.Show("");
Frank