This package provides utility extension methods for advanced string manipulation in .NET applications.
$ dotnet add package Easy.Tools.StringHelpersA lightweight and extensible .NET library that provides a rich set of string extension methods for everyday development needs.
This package contains categorized string helpers for searching, formatting, validation, sanitization, and more.
Install via NuGet:
dotnet add package Easy.Tools.StringHelpers
using Easy.Tools.StringHelpers.Extensions;
string input = "Hello World!";
// Case-insensitive check bool contains = input.ContainsIgnoreCase("world");
// Snake case conversion string snake = "HelloWorld".ToSnakeCase(); // hello_world
// Remove whitespace string clean = " spaced text ".RemoveWhitespace(); // "spacedtext"
// Palindrome check bool isPalindrome = "madam".IsPalindrome(); // true
| Category | Description |
|---|---|
SearchExtensions | Search, count, replace (ignore case, etc.) |
FormatExtensions | Snake/kebab case, camel splitting |
ManipulationExtensions | Whitespace removal, line splitting |
ValidationExtensions | Palindrome, numeric, regex |
GenerationExtensions | Random string generator |
SanitizeExtensions |
| HTML tag and special character removal |
CasingExtensions | Title case, invariant case helpers |
LengthExtensions | ShorterThan, LongerThan |
RegexExtensions | Match, extract via regex |
DateParsingExtensions | Detect if string contains a valid date |
MIT
© 2025 Elmin Alirzayev / Easy Code Tools