hi folks.,
i have a pattern as like this
"The world is #bright# and #beautiful#"
i need to retrieve the string "bright","beautiful" inside # # .. any pointers
My solution (thanks to Bolu):
string s = "The world is #bright# and #beautiful#";
string[] str = s.Split('#');
for (int i = 0; i <= str.Length - 1; i++)
{
if (i % 2 != 0)
{
Response.Write(str[i] + "<br />");
}
}