المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to extract a list of substrings from a string which match specified format using



C# Programming
04-03-2009, 09:03 AM
For exemple, i have a string = "%alan#23%12:34:50#ab %regular#]r";

Extract string which enclosed by '%' and '#'

The substring result should be
substr[0] = "alan";
substr[1] = "12:34:50";
substr[2] = "regular";

How to do it in Regex?

8.Kelvin()
{
while (!(the machine can program itself))
Wont_stop_coding = true;
}