Archive for Help and Info
Find a String Between 2 Strings
Posted by: | CommentsHere’s a way to return a substring of string that is between 2 strings in C#. There are other options for doing this, such as RegEx, but this is clean and simple.
// This search returns the substring between two strings, so // the first index is moved to the character just after the first string. int first = str.IndexOf("$string1$") + "$string1$".Length; int last = str.LastIndexOf("$string2$"); string str2 = str.Substring(first, last - first);
Eco-Friendly PC Disposal
Posted by: | CommentsWhat do you do with old PCs, cell phones and other e-devices? Staples has an eco-friendly disposal program. Dell products are free as are cell phones and some other devices. Other PCs, laptops cost about $10 US. They also destroy the data on the drives.
Be friendly to the planet when you dispose of old PCs!
http://www.staples.com/sbd/cre/marketing/ecoeasy/index2.html

