static string ExtractNumbers(string expr)
{
return string.Join(null,System.Text.RegularExpressions.Regex.Split(expr, “[^\d]”));
}
Call as follows:
Response.Write (ExtractNumbers(“12EFR77”));
static string ExtractNumbers(string expr)
{
return string.Join(null,System.Text.RegularExpressions.Regex.Split(expr, “[^\d]”));
}
Call as follows:
Response.Write (ExtractNumbers(“12EFR77”));
SELECT sysobjects.name
FROM syscolumns
LEFT JOIN sysobjects on sysobjects.id = syscolumns.id
WHERE syscolumns.name LIKE ‘%fieldname%’
ORDER BY 1
Because, without a shortcut, I forget:
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12
Converting Array to ArrayList:
ArrayList fileArrayList = = new ArrayList();
string[] files = Directory.GetDirectories(path)
fileArrayList.AddRange(files);
Converting ArrayList to Array:
ArrayList fileArrayList = new ArrayList();
//Populate fileArrayList
…
string[] files = (string[])fileArrayList.