Soenneker.Extensions.String
2.1.142
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Extensions.String --version 2.1.142
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.142
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.String" Version="2.1.142" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Extensions.String --version 2.1.142
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.String, 2.1.142"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Extensions.String as a Cake Addin
#addin nuget:?package=Soenneker.Extensions.String&version=2.1.142
// Install Soenneker.Extensions.String as a Cake Tool
#tool nuget:?package=Soenneker.Extensions.String&version=2.1.142
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.String
A collection of useful string extension methods
Installation
dotnet add package Soenneker.Extensions.String
Usage
Truncate()
string longString = "This is a long string that needs to be truncated";
string truncatedString = longString.Truncate(10);
// truncatedString = "This is a ..."
IsAlphaNumeric()
string alphanumeric = "abc123";
bool isAlphanumeric = alphanumeric.IsAlphaNumeric();
// isAlphanumeric = true
string nonAlphanumeric = "abc123!";
bool isNonAlphanumeric = nonAlphanumeric.IsAlphaNumeric();
// isNonAlphanumeric = false
Slugify()
string test = "this string&is%bad#for\\urls"
test.Slugify() // "this-string-is-bad-for-urls"
ToDouble()
string numericString = "3.14";
double? doubleValue = numericString.ToDouble();
// doubleValue = 3.14
string nonNumericString = "abc";
double? nonDoubleValue = nonNumericString.ToDouble();
// nonDoubleValue = null
RemoveNonDigits()
string stringWithNonDigits = "abc123xyz456";
string digitsOnly = stringWithNonDigits.RemoveNonDigits();
// digitsOnly = "123456"
Shuffle()
string originalString = "hello";
string shuffledString = originalString.Shuffle();
// shuffledString = "olhel"
... and more
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Soenneker.Extensions.ByteArray (>= 2.1.28)
- Soenneker.Extensions.Char (>= 2.1.8)
- Soenneker.Extensions.Stream (>= 2.1.28)
- Soenneker.Utils.Random (>= 2.1.29)
- Soenneker.Utils.RegexCollection (>= 2.1.30)
NuGet packages (14)
Showing the top 5 NuGet packages that depend on Soenneker.Extensions.String:
Package | Downloads |
---|---|
Soenneker.Utils.MemoryStream
An easy modern MemoryStream utility |
|
Soenneker.Extensions.Configuration
A collection of helpful IConfiguration extension methods |
|
Soenneker.Utils.Logger
A useful utility library dealing with Serilog logging |
|
Soenneker.Documents.Document
The base document type providing a building block for storage objects |
|
Soenneker.Utils.Environment
A utility library for useful environment related functionality |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.153 | 16,900 | 4/28/2024 |
2.1.152 | 61 | 4/28/2024 |
2.1.151 | 5,393 | 4/28/2024 |
2.1.150 | 62 | 4/28/2024 |
2.1.149 | 60 | 4/28/2024 |
2.1.148 | 563 | 4/28/2024 |
2.1.147 | 61 | 4/28/2024 |
2.1.146 | 61 | 4/28/2024 |
2.1.145 | 4,397 | 4/27/2024 |
2.1.144 | 76 | 4/27/2024 |
2.1.143 | 60 | 4/27/2024 |
2.1.142 | 28,453 | 4/12/2024 |
2.1.141 | 82 | 4/12/2024 |
2.1.140 | 3,485 | 4/12/2024 |
2.1.139 | 89 | 4/12/2024 |
2.1.138 | 75 | 4/12/2024 |
2.1.137 | 2,878 | 4/12/2024 |
2.1.136 | 78 | 4/12/2024 |
2.1.135 | 73 | 4/12/2024 |
2.1.134 | 75 | 4/12/2024 |
2.1.133 | 18,902 | 4/1/2024 |
2.1.132 | 13,482 | 3/25/2024 |
2.1.131 | 15,045 | 3/18/2024 |
2.1.130 | 147 | 3/18/2024 |
2.1.129 | 263 | 3/18/2024 |
2.1.128 | 14,172 | 3/13/2024 |
2.1.127 | 136 | 3/13/2024 |
2.1.126 | 134 | 3/13/2024 |
2.1.125 | 1,489 | 3/13/2024 |
2.1.124 | 123 | 3/13/2024 |
2.1.123 | 122 | 3/13/2024 |
2.1.122 | 28,140 | 3/8/2024 |
2.1.121 | 11,929 | 3/3/2024 |
2.1.120 | 10,164 | 3/2/2024 |
2.1.119 | 1,894 | 3/1/2024 |
2.1.117 | 9,398 | 2/28/2024 |
2.1.116 | 17,630 | 2/25/2024 |
2.1.115 | 169 | 2/25/2024 |
2.1.114 | 14,499 | 2/21/2024 |
2.1.113 | 3,983 | 2/21/2024 |
2.1.112 | 2,153 | 2/21/2024 |
2.1.111 | 1,396 | 2/21/2024 |
2.1.110 | 200 | 2/21/2024 |
2.1.109 | 4,704 | 2/21/2024 |
2.1.108 | 186 | 2/21/2024 |
2.1.107 | 191 | 2/21/2024 |
2.1.106 | 11,839 | 2/20/2024 |
2.1.105 | 1,332 | 2/20/2024 |
2.1.104 | 7,787 | 2/19/2024 |
2.1.103 | 7,873 | 2/16/2024 |
2.1.102 | 5,413 | 2/16/2024 |
2.1.101 | 194 | 2/16/2024 |
2.1.100 | 5,434 | 2/16/2024 |
2.1.99 | 31,641 | 2/9/2024 |
2.1.98 | 27,832 | 2/7/2024 |
2.1.97 | 3,874 | 2/6/2024 |
2.1.96 | 2,261 | 2/6/2024 |
2.1.95 | 338 | 2/6/2024 |
2.1.94 | 214 | 2/6/2024 |
2.1.93 | 10,544 | 2/4/2024 |
2.1.92 | 78,613 | 1/15/2024 |
2.1.91 | 4,349 | 1/15/2024 |
2.1.90 | 326 | 1/15/2024 |
2.1.89 | 2,654 | 1/15/2024 |
2.1.88 | 281 | 1/15/2024 |
2.1.87 | 30,460 | 1/7/2024 |
2.1.86 | 6,045 | 1/5/2024 |
2.1.85 | 3,522 | 1/5/2024 |
2.1.84 | 315 | 1/5/2024 |
2.1.83 | 339 | 1/5/2024 |
2.1.82 | 4,367 | 1/5/2024 |
2.1.81 | 10,447 | 1/1/2024 |
2.1.80 | 391 | 1/1/2024 |
2.1.79 | 6,720 | 12/28/2023 |
2.1.78 | 3,603 | 12/28/2023 |
2.1.77 | 3,403 | 12/27/2023 |
2.1.76 | 361 | 12/27/2023 |
2.1.75 | 369 | 12/27/2023 |
2.1.74 | 4,261 | 12/27/2023 |
2.1.73 | 338 | 12/27/2023 |
2.1.72 | 359 | 12/27/2023 |
2.1.71 | 12,498 | 12/25/2023 |
2.1.70 | 732 | 12/25/2023 |
2.1.69 | 377 | 12/25/2023 |
2.1.68 | 380 | 12/25/2023 |
2.1.67 | 3,981 | 12/25/2023 |
2.1.66 | 10,282 | 12/24/2023 |
2.1.65 | 6,193 | 12/23/2023 |
2.1.64 | 1,516 | 12/23/2023 |
2.1.63 | 348 | 12/23/2023 |
2.1.62 | 4,462 | 12/23/2023 |
2.1.61 | 377 | 12/23/2023 |
2.1.60 | 340 | 12/23/2023 |
2.1.59 | 1,540 | 12/23/2023 |
2.1.58 | 347 | 12/23/2023 |
2.1.57 | 11,061 | 12/19/2023 |
2.1.56 | 3,683 | 12/18/2023 |
2.1.55 | 10,379 | 12/10/2023 |
2.1.51 | 5,232 | 12/10/2023 |
2.1.50 | 8,937 | 12/9/2023 |
2.1.49 | 389 | 12/9/2023 |
2.1.48 | 456 | 12/9/2023 |
2.1.47 | 401 | 12/9/2023 |
2.1.46 | 398 | 12/9/2023 |
2.1.45 | 425 | 12/9/2023 |
2.1.44 | 6,041 | 12/9/2023 |
2.1.43 | 9,494 | 12/6/2023 |
2.1.42 | 7,468 | 12/4/2023 |
2.1.41 | 5,003 | 12/4/2023 |
2.1.40 | 436 | 12/4/2023 |
2.1.39 | 706 | 12/4/2023 |
2.1.38 | 458 | 12/4/2023 |
2.1.37 | 12,386 | 11/23/2023 |
2.1.36 | 379 | 11/23/2023 |
2.1.35 | 611 | 11/23/2023 |
2.1.34 | 412 | 11/23/2023 |
2.1.33 | 1,664 | 11/23/2023 |
2.1.32 | 2,664 | 11/23/2023 |
2.1.31 | 7,507 | 11/20/2023 |
2.1.30 | 2,970 | 11/20/2023 |
2.1.29 | 5,396 | 11/19/2023 |
2.1.28 | 860 | 11/19/2023 |
2.1.27 | 405 | 11/19/2023 |
2.1.26 | 423 | 11/19/2023 |
2.1.25 | 393 | 11/19/2023 |
2.1.24 | 1,937 | 11/19/2023 |
2.1.23 | 8,080 | 11/18/2023 |
2.1.22 | 437 | 11/18/2023 |
2.1.21 | 2,737 | 11/18/2023 |
2.1.20 | 1,872 | 11/18/2023 |
2.1.19 | 419 | 11/18/2023 |
2.1.18 | 4,669 | 11/17/2023 |
2.1.17 | 1,200 | 11/17/2023 |
2.1.16 | 438 | 11/17/2023 |
2.1.15 | 423 | 11/17/2023 |
2.1.14 | 1,402 | 11/17/2023 |
2.1.13 | 6,368 | 11/17/2023 |
2.1.12 | 1,493 | 11/17/2023 |
2.1.11 | 412 | 11/17/2023 |
2.1.10 | 428 | 11/17/2023 |
2.1.9 | 443 | 11/17/2023 |
2.1.8 | 2,808 | 11/17/2023 |
2.1.7 | 1,337 | 11/16/2023 |
2.1.6 | 380 | 11/16/2023 |
2.1.5 | 690 | 11/16/2023 |
2.1.4 | 418 | 11/16/2023 |
2.0.140 | 4,378 | 11/15/2023 |
2.0.139 | 439 | 11/15/2023 |
2.0.138 | 419 | 11/15/2023 |
2.0.137 | 420 | 11/15/2023 |
2.0.136 | 413 | 11/15/2023 |
2.0.3 | 400 | 11/16/2023 |
2.0.2 | 423 | 11/16/2023 |
2.0.1 | 379 | 11/16/2023 |
1.0.135 | 10,054 | 11/10/2023 |
1.0.134 | 435 | 11/10/2023 |
1.0.133 | 4,942 | 11/9/2023 |
1.0.132 | 391 | 11/9/2023 |
1.0.131 | 437 | 11/9/2023 |
1.0.130 | 1,741 | 11/8/2023 |
1.0.129 | 8,928 | 11/6/2023 |
1.0.128 | 414 | 11/6/2023 |
1.0.127 | 450 | 11/6/2023 |
1.0.126 | 454 | 11/6/2023 |
1.0.125 | 3,313 | 11/3/2023 |
1.0.124 | 5,979 | 11/2/2023 |
1.0.123 | 444 | 11/2/2023 |
1.0.122 | 443 | 11/2/2023 |
1.0.121 | 419 | 11/2/2023 |
1.0.120 | 3,207 | 11/1/2023 |
1.0.119 | 16,187 | 10/18/2023 |
1.0.118 | 487 | 10/18/2023 |
1.0.117 | 472 | 10/18/2023 |
1.0.116 | 460 | 10/18/2023 |
1.0.115 | 3,566 | 10/17/2023 |
1.0.114 | 4,277 | 10/16/2023 |
1.0.113 | 473 | 10/16/2023 |
1.0.112 | 465 | 10/16/2023 |
1.0.111 | 479 | 10/16/2023 |
1.0.110 | 6,463 | 10/13/2023 |
1.0.109 | 499 | 10/13/2023 |
1.0.108 | 11,474 | 9/19/2023 |
1.0.107 | 509 | 9/19/2023 |
1.0.106 | 507 | 9/19/2023 |
1.0.105 | 464 | 9/19/2023 |
1.0.104 | 5,867 | 9/18/2023 |
1.0.103 | 508 | 9/18/2023 |
1.0.102 | 13,750 | 8/30/2023 |
1.0.101 | 564 | 8/30/2023 |
1.0.100 | 507 | 8/30/2023 |
1.0.99 | 526 | 8/30/2023 |
1.0.98 | 538 | 8/30/2023 |
1.0.97 | 10,228 | 8/25/2023 |
1.0.96 | 4,746 | 8/24/2023 |
1.0.95 | 537 | 8/24/2023 |
1.0.94 | 8,989 | 8/18/2023 |
1.0.93 | 555 | 8/18/2023 |
1.0.92 | 4,165 | 8/17/2023 |
1.0.91 | 530 | 8/17/2023 |
1.0.90 | 544 | 8/17/2023 |
1.0.89 | 15,941 | 8/8/2023 |
1.0.88 | 565 | 8/8/2023 |
1.0.87 | 5,151 | 8/7/2023 |
1.0.86 | 575 | 8/7/2023 |
1.0.85 | 563 | 8/7/2023 |
1.0.84 | 19,367 | 7/10/2023 |
1.0.83 | 623 | 7/10/2023 |
1.0.82 | 654 | 7/10/2023 |
1.0.81 | 663 | 7/10/2023 |
1.0.80 | 4,297 | 7/7/2023 |
1.0.79 | 601 | 7/7/2023 |
1.0.78 | 14,382 | 6/29/2023 |
1.0.77 | 4,010 | 6/28/2023 |
1.0.76 | 630 | 6/28/2023 |
1.0.75 | 666 | 6/28/2023 |
1.0.74 | 42,008 | 6/7/2023 |
1.0.73 | 5,619 | 6/7/2023 |
1.0.72 | 668 | 6/7/2023 |
1.0.71 | 660 | 6/7/2023 |
1.0.70 | 6,700 | 6/6/2023 |
1.0.69 | 649 | 6/6/2023 |
1.0.68 | 2,617 | 6/5/2023 |
1.0.67 | 628 | 6/5/2023 |
1.0.66 | 6,350 | 6/2/2023 |
1.0.65 | 659 | 6/2/2023 |
1.0.64 | 658 | 6/2/2023 |
1.0.63 | 25,773 | 5/30/2023 |
1.0.62 | 645 | 5/30/2023 |
1.0.61 | 7,532 | 5/29/2023 |
1.0.60 | 658 | 5/29/2023 |
1.0.59 | 6,157 | 5/26/2023 |
1.0.58 | 11,333 | 5/25/2023 |
1.0.57 | 670 | 5/25/2023 |
1.0.56 | 5,816 | 5/24/2023 |
1.0.55 | 677 | 5/24/2023 |
1.0.54 | 680 | 5/24/2023 |
1.0.53 | 657 | 5/24/2023 |
1.0.52 | 758 | 5/24/2023 |
1.0.51 | 3,826 | 5/23/2023 |
1.0.50 | 669 | 5/23/2023 |
1.0.49 | 655 | 5/23/2023 |
1.0.46 | 12,311 | 5/22/2023 |
1.0.45 | 9,943 | 5/18/2023 |
1.0.44 | 5,920 | 5/17/2023 |
1.0.43 | 652 | 5/17/2023 |
1.0.42 | 635 | 5/17/2023 |
1.0.41 | 639 | 5/17/2023 |
1.0.40 | 15,581 | 4/24/2023 |
1.0.39 | 2,217 | 4/24/2023 |
1.0.38 | 709 | 4/24/2023 |
1.0.37 | 3,672 | 4/21/2023 |
1.0.36 | 662 | 4/21/2023 |
1.0.35 | 663 | 4/21/2023 |
1.0.34 | 4,053 | 4/20/2023 |
1.0.33 | 818 | 4/20/2023 |
1.0.32 | 778 | 4/20/2023 |
1.0.31 | 3,819 | 4/19/2023 |
1.0.30 | 1,700 | 4/18/2023 |
1.0.29 | 677 | 4/18/2023 |
1.0.28 | 1,770 | 4/18/2023 |
1.0.27 | 3,058 | 4/17/2023 |
1.0.26 | 752 | 4/16/2023 |
1.0.25 | 716 | 4/16/2023 |
1.0.24 | 3,169 | 4/14/2023 |
1.0.23 | 2,328 | 4/13/2023 |
1.0.22 | 2,218 | 4/12/2023 |
1.0.21 | 700 | 4/12/2023 |
1.0.20 | 689 | 4/12/2023 |
1.0.19 | 1,558 | 4/11/2023 |
1.0.18 | 744 | 4/11/2023 |
1.0.17 | 2,382 | 4/11/2023 |
1.0.16 | 2,722 | 4/7/2023 |
1.0.15 | 3,418 | 4/3/2023 |
1.0.14 | 729 | 4/3/2023 |
1.0.13 | 716 | 4/3/2023 |
1.0.12 | 695 | 4/3/2023 |
1.0.11 | 1,898 | 4/1/2023 |
1.0.10 | 1,097 | 3/30/2023 |
1.0.9 | 842 | 3/26/2023 |
1.0.7 | 3,729 | 2/27/2023 |
1.0.6 | 739 | 2/26/2023 |
1.0.5 | 735 | 2/22/2023 |
1.0.4 | 922 | 2/22/2023 |
1.0.3 | 768 | 2/22/2023 |
1.0.2 | 1,280 | 2/12/2023 |
1.0.1 | 956 | 2/12/2023 |