check if string could be a valid web address using regular expressions more check if string could be a number using regular expressions more check for jpeg/gif/png file extension using regular expressions more Check if a string is properly formed using regular expression and so might be a valid email address more wrapper for DateTime.TryParse more Test a filename could be an audio file supported by the HTML5 audio player using regular expressions more helper for System.IO.Path.GetFileName e.g. "/images/ben.jpg" returns "ben.jpg" more Three overloads for joining strings more Nothing worse than trying to save a null to a string field! more Check if an expected integer is null or a passed in value more Check if an expected double is null or a passed in value more Create a string of unique words for searches more Sample Extension Method to extend filepaths more Extension method to wrap DateTime.TryParse more Extension method to get a word count more Trim a string to length more Extend LINQ OrderBy so you can pass in parameters dynamically in Method synta more You'll find a lot of other posts on other sites detailing how to create SEO friendly URL's - I've just tweaked it and made it into an extension ... more A solution various conditional lambda expressions without breaking the flow of the expression more Need to work out the lapsed time in years between a date and now? try this more Code for a convenient way to encode a string safe for javascript i.e. properly escaped more Extension method for decoding HTML - extension for HttpUtility.HtmlDecode more Get a human readable representation of time lapseds e.g. returns "one second ago" "a minute ago" "an hour ago" more Sample code using PredicateBuilder to do an OR search using LINQpad more |