vitaly radionov
BAN USERMaybe it's not best, but it is work - find each needed file and read it to string variables, then using regular expressions extract phone numbers and save to array. You need save in one of the formats(xxxxxxxxxx, xxxxx-xxxxx, xxx-xxx-xxxx). And if You choose xxxxxxxxxx, You need delete symbols "-". If You want I can write code using c#.net, send me examples only.
Better idea - all symbols(and 2 empty) that not number or "-" You replace with " "(empty)
then string[] strs = STRING_HTML.Split(" ");
then remove if(length != 10, 11, 12) and analyze.
You need write following:
add on click button1_Click or other event
Thread th1 = new Thread(new ThreadStart(YOUR_METHOD_NAME));
th1.Start();
public string YOUR_METHOD_NAME()
{
Thread.Sleep(10000);
MessageBox.Show("Hello!");
}
DateTime.UtcNow beter
- vitaly radionov December 01, 2012
string word = "I like this world";
- vitaly radionov December 08, 2012string[] words = word.Split(' ');
for (int i = words.Length - 1; i >= 0; i--)
{
Console.WriteLine(words[i]);
}
Console.WriteLine("**********");
for (int i = 0; i < words.Length; i++)
{
char[] chars = words[i].ToCharArray();
for (int j = chars.Length - 1; j >= 0; j--)
{
Console.Write(chars[j]);
}
Console.WriteLine();
}
Console.ReadLine();
out:
world
this
like
I
********
I
ekil
siht
dlrow