Soenneker.Extensions.String
2.1.205
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.205
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.205
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.205" />
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.205
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.String, 2.1.205"
#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.205 // Install Soenneker.Extensions.String as a Cake Tool #tool nuget:?package=Soenneker.Extensions.String&version=2.1.205
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.36)
- Soenneker.Extensions.Char (>= 2.1.16)
- Soenneker.Extensions.Stream (>= 2.1.37)
- Soenneker.Extensions.Task (>= 2.1.60)
- Soenneker.Utils.Random (>= 2.1.39)
- Soenneker.Utils.RegexCollection (>= 2.1.38)
NuGet packages (18)
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.212 | 17,671 | 8/20/2024 |
2.1.211 | 4,477 | 8/20/2024 |
2.1.210 | 60 | 8/20/2024 |
2.1.209 | 62 | 8/20/2024 |
2.1.208 | 3,769 | 8/20/2024 |
2.1.207 | 60 | 8/20/2024 |
2.1.206 | 54 | 8/20/2024 |
2.1.205 | 54,147 | 7/24/2024 |
2.1.204 | 4,471 | 7/24/2024 |
2.1.203 | 51 | 7/24/2024 |
2.1.202 | 19,965 | 7/13/2024 |
2.1.201 | 62 | 7/13/2024 |
2.1.200 | 12,107 | 7/10/2024 |
2.1.199 | 3,936 | 7/10/2024 |
2.1.198 | 88 | 7/10/2024 |
2.1.196 | 3,156 | 7/9/2024 |
2.1.194 | 2,554 | 7/9/2024 |
2.1.193 | 15,055 | 7/9/2024 |
2.1.192 | 4,291 | 7/9/2024 |
2.1.191 | 445 | 7/9/2024 |
2.1.190 | 66 | 7/9/2024 |
2.1.189 | 7,840 | 7/9/2024 |
2.1.188 | 2,042 | 7/8/2024 |
2.1.187 | 64 | 7/8/2024 |
2.1.186 | 93 | 7/8/2024 |
2.1.185 | 68 | 7/8/2024 |
2.1.184 | 70 | 7/8/2024 |
2.1.183 | 4,430 | 7/8/2024 |
2.1.182 | 66 | 7/8/2024 |
2.1.181 | 69 | 7/8/2024 |
2.1.180 | 398 | 7/8/2024 |
2.1.179 | 18,689 | 7/7/2024 |
2.1.178 | 2,651 | 7/7/2024 |
2.1.177 | 16,070 | 7/3/2024 |
2.1.176 | 27,830 | 6/14/2024 |
2.1.174 | 32,304 | 5/27/2024 |
2.1.173 | 2,620 | 5/27/2024 |
2.1.172 | 68 | 5/27/2024 |
2.1.171 | 14,998 | 5/25/2024 |
2.1.170 | 6,012 | 5/25/2024 |
2.1.169 | 79 | 5/25/2024 |
2.1.168 | 78 | 5/25/2024 |
2.1.167 | 3,351 | 5/25/2024 |
2.1.166 | 72 | 5/25/2024 |
2.1.165 | 72 | 5/25/2024 |
2.1.164 | 72 | 5/25/2024 |
2.1.163 | 3,222 | 5/25/2024 |
2.1.162 | 74 | 5/25/2024 |
2.1.161 | 14,524 | 5/22/2024 |
2.1.160 | 3,798 | 5/22/2024 |
2.1.159 | 1,743 | 5/22/2024 |
2.1.158 | 80 | 5/22/2024 |
2.1.157 | 73 | 5/22/2024 |
2.1.156 | 83 | 5/22/2024 |
2.1.155 | 7,373 | 5/22/2024 |
2.1.154 | 12,611 | 5/16/2024 |
2.1.153 | 34,849 | 4/28/2024 |
2.1.152 | 72 | 4/28/2024 |
2.1.151 | 5,523 | 4/28/2024 |
2.1.150 | 73 | 4/28/2024 |
2.1.149 | 71 | 4/28/2024 |
2.1.148 | 577 | 4/28/2024 |
2.1.147 | 74 | 4/28/2024 |
2.1.146 | 75 | 4/28/2024 |
2.1.145 | 4,412 | 4/27/2024 |
2.1.144 | 88 | 4/27/2024 |
2.1.143 | 72 | 4/27/2024 |
2.1.142 | 28,501 | 4/12/2024 |
2.1.141 | 91 | 4/12/2024 |
2.1.140 | 3,505 | 4/12/2024 |
2.1.139 | 97 | 4/12/2024 |
2.1.138 | 85 | 4/12/2024 |
2.1.137 | 2,887 | 4/12/2024 |
2.1.136 | 87 | 4/12/2024 |
2.1.135 | 82 | 4/12/2024 |
2.1.134 | 83 | 4/12/2024 |
2.1.133 | 19,153 | 4/1/2024 |
2.1.132 | 13,532 | 3/25/2024 |
2.1.131 | 15,088 | 3/18/2024 |
2.1.130 | 157 | 3/18/2024 |
2.1.129 | 273 | 3/18/2024 |
2.1.128 | 14,241 | 3/13/2024 |
2.1.127 | 148 | 3/13/2024 |
2.1.126 | 146 | 3/13/2024 |
2.1.125 | 1,503 | 3/13/2024 |
2.1.124 | 136 | 3/13/2024 |
2.1.123 | 135 | 3/13/2024 |
2.1.122 | 28,185 | 3/8/2024 |
2.1.121 | 11,960 | 3/3/2024 |
2.1.120 | 10,192 | 3/2/2024 |
2.1.119 | 1,908 | 3/1/2024 |
2.1.117 | 9,417 | 2/28/2024 |
2.1.116 | 17,678 | 2/25/2024 |
2.1.115 | 180 | 2/25/2024 |
2.1.114 | 14,532 | 2/21/2024 |
2.1.113 | 3,996 | 2/21/2024 |
2.1.112 | 2,166 | 2/21/2024 |
2.1.111 | 1,414 | 2/21/2024 |
2.1.110 | 211 | 2/21/2024 |
2.1.109 | 4,719 | 2/21/2024 |
2.1.108 | 197 | 2/21/2024 |
2.1.107 | 210 | 2/21/2024 |
2.1.106 | 11,877 | 2/20/2024 |
2.1.105 | 1,345 | 2/20/2024 |
2.1.104 | 7,800 | 2/19/2024 |
2.1.103 | 7,888 | 2/16/2024 |
2.1.102 | 5,432 | 2/16/2024 |
2.1.101 | 205 | 2/16/2024 |
2.1.100 | 5,455 | 2/16/2024 |
2.1.99 | 31,666 | 2/9/2024 |
2.1.98 | 27,856 | 2/7/2024 |
2.1.97 | 3,887 | 2/6/2024 |
2.1.96 | 2,275 | 2/6/2024 |
2.1.95 | 350 | 2/6/2024 |
2.1.94 | 226 | 2/6/2024 |
2.1.93 | 10,557 | 2/4/2024 |
2.1.92 | 78,687 | 1/15/2024 |
2.1.91 | 4,367 | 1/15/2024 |
2.1.90 | 337 | 1/15/2024 |
2.1.89 | 2,665 | 1/15/2024 |
2.1.88 | 291 | 1/15/2024 |
2.1.87 | 30,495 | 1/7/2024 |
2.1.86 | 6,068 | 1/5/2024 |
2.1.85 | 3,533 | 1/5/2024 |
2.1.84 | 326 | 1/5/2024 |
2.1.83 | 351 | 1/5/2024 |
2.1.82 | 4,378 | 1/5/2024 |
2.1.81 | 10,458 | 1/1/2024 |
2.1.80 | 403 | 1/1/2024 |
2.1.79 | 6,731 | 12/28/2023 |
2.1.78 | 3,610 | 12/28/2023 |
2.1.77 | 3,431 | 12/27/2023 |
2.1.76 | 368 | 12/27/2023 |
2.1.75 | 375 | 12/27/2023 |
2.1.74 | 4,283 | 12/27/2023 |
2.1.73 | 351 | 12/27/2023 |
2.1.72 | 367 | 12/27/2023 |
2.1.71 | 12,521 | 12/25/2023 |
2.1.70 | 741 | 12/25/2023 |
2.1.69 | 385 | 12/25/2023 |
2.1.68 | 386 | 12/25/2023 |
2.1.67 | 4,000 | 12/25/2023 |
2.1.66 | 10,305 | 12/24/2023 |
2.1.65 | 6,205 | 12/23/2023 |
2.1.64 | 1,543 | 12/23/2023 |
2.1.63 | 355 | 12/23/2023 |
2.1.62 | 4,472 | 12/23/2023 |
2.1.61 | 384 | 12/23/2023 |
2.1.60 | 347 | 12/23/2023 |
2.1.59 | 1,548 | 12/23/2023 |
2.1.58 | 354 | 12/23/2023 |
2.1.57 | 11,093 | 12/19/2023 |
2.1.56 | 3,691 | 12/18/2023 |
2.1.55 | 10,398 | 12/10/2023 |
2.1.51 | 5,246 | 12/10/2023 |
2.1.50 | 8,949 | 12/9/2023 |
2.1.49 | 397 | 12/9/2023 |
2.1.48 | 464 | 12/9/2023 |
2.1.47 | 414 | 12/9/2023 |
2.1.46 | 406 | 12/9/2023 |
2.1.45 | 433 | 12/9/2023 |
2.1.44 | 6,052 | 12/9/2023 |
2.1.43 | 9,517 | 12/6/2023 |
2.1.42 | 7,494 | 12/4/2023 |
2.1.41 | 5,024 | 12/4/2023 |
2.1.40 | 445 | 12/4/2023 |
2.1.39 | 714 | 12/4/2023 |
2.1.38 | 466 | 12/4/2023 |
2.1.37 | 12,422 | 11/23/2023 |
2.1.36 | 386 | 11/23/2023 |
2.1.35 | 619 | 11/23/2023 |
2.1.34 | 420 | 11/23/2023 |
2.1.33 | 1,671 | 11/23/2023 |
2.1.32 | 2,673 | 11/23/2023 |
2.1.31 | 7,518 | 11/20/2023 |
2.1.30 | 2,977 | 11/20/2023 |
2.1.29 | 5,410 | 11/19/2023 |
2.1.28 | 867 | 11/19/2023 |
2.1.27 | 418 | 11/19/2023 |
2.1.26 | 430 | 11/19/2023 |
2.1.25 | 400 | 11/19/2023 |
2.1.24 | 1,947 | 11/19/2023 |
2.1.23 | 8,090 | 11/18/2023 |
2.1.22 | 444 | 11/18/2023 |
2.1.21 | 2,748 | 11/18/2023 |
2.1.20 | 1,881 | 11/18/2023 |
2.1.19 | 426 | 11/18/2023 |
2.1.18 | 4,741 | 11/17/2023 |
2.1.17 | 1,207 | 11/17/2023 |
2.1.16 | 450 | 11/17/2023 |
2.1.15 | 430 | 11/17/2023 |
2.1.14 | 1,415 | 11/17/2023 |
2.1.13 | 6,379 | 11/17/2023 |
2.1.12 | 1,500 | 11/17/2023 |
2.1.11 | 419 | 11/17/2023 |
2.1.10 | 441 | 11/17/2023 |
2.1.9 | 450 | 11/17/2023 |
2.1.8 | 2,815 | 11/17/2023 |
2.1.7 | 1,344 | 11/16/2023 |
2.1.6 | 387 | 11/16/2023 |
2.1.5 | 697 | 11/16/2023 |
2.1.4 | 425 | 11/16/2023 |
2.0.140 | 4,409 | 11/15/2023 |
2.0.139 | 446 | 11/15/2023 |
2.0.138 | 426 | 11/15/2023 |
2.0.137 | 427 | 11/15/2023 |
2.0.136 | 420 | 11/15/2023 |
2.0.3 | 407 | 11/16/2023 |
2.0.2 | 430 | 11/16/2023 |
2.0.1 | 386 | 11/16/2023 |
1.0.135 | 10,074 | 11/10/2023 |
1.0.134 | 440 | 11/10/2023 |
1.0.133 | 4,964 | 11/9/2023 |
1.0.132 | 397 | 11/9/2023 |
1.0.131 | 445 | 11/9/2023 |
1.0.130 | 1,756 | 11/8/2023 |
1.0.129 | 8,951 | 11/6/2023 |
1.0.128 | 422 | 11/6/2023 |
1.0.127 | 456 | 11/6/2023 |
1.0.126 | 460 | 11/6/2023 |
1.0.125 | 3,321 | 11/3/2023 |
1.0.124 | 5,994 | 11/2/2023 |
1.0.123 | 454 | 11/2/2023 |
1.0.122 | 453 | 11/2/2023 |
1.0.121 | 429 | 11/2/2023 |
1.0.120 | 3,221 | 11/1/2023 |
1.0.119 | 16,204 | 10/18/2023 |
1.0.118 | 494 | 10/18/2023 |
1.0.117 | 479 | 10/18/2023 |
1.0.116 | 467 | 10/18/2023 |
1.0.115 | 3,574 | 10/17/2023 |
1.0.114 | 4,295 | 10/16/2023 |
1.0.113 | 480 | 10/16/2023 |
1.0.112 | 473 | 10/16/2023 |
1.0.111 | 502 | 10/16/2023 |
1.0.110 | 6,480 | 10/13/2023 |
1.0.109 | 507 | 10/13/2023 |
1.0.108 | 11,502 | 9/19/2023 |
1.0.107 | 515 | 9/19/2023 |
1.0.106 | 513 | 9/19/2023 |
1.0.105 | 468 | 9/19/2023 |
1.0.104 | 5,887 | 9/18/2023 |
1.0.103 | 515 | 9/18/2023 |
1.0.102 | 13,762 | 8/30/2023 |
1.0.101 | 571 | 8/30/2023 |
1.0.100 | 514 | 8/30/2023 |
1.0.99 | 530 | 8/30/2023 |
1.0.98 | 549 | 8/30/2023 |
1.0.97 | 10,242 | 8/25/2023 |
1.0.96 | 4,753 | 8/24/2023 |
1.0.95 | 541 | 8/24/2023 |
1.0.94 | 8,994 | 8/18/2023 |
1.0.93 | 567 | 8/18/2023 |
1.0.92 | 4,170 | 8/17/2023 |
1.0.91 | 536 | 8/17/2023 |
1.0.90 | 548 | 8/17/2023 |
1.0.89 | 15,968 | 8/8/2023 |
1.0.88 | 569 | 8/8/2023 |
1.0.87 | 5,156 | 8/7/2023 |
1.0.86 | 581 | 8/7/2023 |
1.0.85 | 567 | 8/7/2023 |
1.0.84 | 19,386 | 7/10/2023 |
1.0.83 | 628 | 7/10/2023 |
1.0.82 | 661 | 7/10/2023 |
1.0.81 | 676 | 7/10/2023 |
1.0.80 | 4,310 | 7/7/2023 |
1.0.79 | 608 | 7/7/2023 |
1.0.78 | 14,402 | 6/29/2023 |
1.0.77 | 4,017 | 6/28/2023 |
1.0.76 | 635 | 6/28/2023 |
1.0.75 | 671 | 6/28/2023 |
1.0.74 | 42,036 | 6/7/2023 |
1.0.73 | 5,644 | 6/7/2023 |
1.0.72 | 673 | 6/7/2023 |
1.0.71 | 665 | 6/7/2023 |
1.0.70 | 6,711 | 6/6/2023 |
1.0.69 | 654 | 6/6/2023 |
1.0.68 | 2,630 | 6/5/2023 |
1.0.67 | 635 | 6/5/2023 |
1.0.66 | 6,365 | 6/2/2023 |
1.0.65 | 671 | 6/2/2023 |
1.0.64 | 665 | 6/2/2023 |
1.0.63 | 25,796 | 5/30/2023 |
1.0.62 | 657 | 5/30/2023 |
1.0.61 | 7,549 | 5/29/2023 |
1.0.60 | 664 | 5/29/2023 |
1.0.59 | 6,164 | 5/26/2023 |
1.0.58 | 11,351 | 5/25/2023 |
1.0.57 | 676 | 5/25/2023 |
1.0.56 | 5,821 | 5/24/2023 |
1.0.55 | 688 | 5/24/2023 |
1.0.54 | 685 | 5/24/2023 |
1.0.53 | 663 | 5/24/2023 |
1.0.52 | 762 | 5/24/2023 |
1.0.51 | 3,834 | 5/23/2023 |
1.0.50 | 675 | 5/23/2023 |
1.0.49 | 663 | 5/23/2023 |
1.0.46 | 12,322 | 5/22/2023 |
1.0.45 | 9,950 | 5/18/2023 |
1.0.44 | 5,928 | 5/17/2023 |
1.0.43 | 658 | 5/17/2023 |
1.0.42 | 641 | 5/17/2023 |
1.0.41 | 643 | 5/17/2023 |
1.0.40 | 15,596 | 4/24/2023 |
1.0.39 | 2,229 | 4/24/2023 |
1.0.38 | 715 | 4/24/2023 |
1.0.37 | 3,687 | 4/21/2023 |
1.0.36 | 670 | 4/21/2023 |
1.0.35 | 673 | 4/21/2023 |
1.0.34 | 4,066 | 4/20/2023 |
1.0.33 | 828 | 4/20/2023 |
1.0.32 | 784 | 4/20/2023 |
1.0.31 | 3,826 | 4/19/2023 |
1.0.30 | 1,709 | 4/18/2023 |
1.0.29 | 685 | 4/18/2023 |
1.0.28 | 1,778 | 4/18/2023 |
1.0.27 | 3,069 | 4/17/2023 |
1.0.26 | 760 | 4/16/2023 |
1.0.25 | 722 | 4/16/2023 |
1.0.24 | 3,180 | 4/14/2023 |
1.0.23 | 2,335 | 4/13/2023 |
1.0.22 | 2,230 | 4/12/2023 |
1.0.21 | 709 | 4/12/2023 |
1.0.20 | 697 | 4/12/2023 |
1.0.19 | 1,566 | 4/11/2023 |
1.0.18 | 753 | 4/11/2023 |
1.0.17 | 2,402 | 4/11/2023 |
1.0.16 | 2,739 | 4/7/2023 |
1.0.15 | 3,429 | 4/3/2023 |
1.0.14 | 736 | 4/3/2023 |
1.0.13 | 722 | 4/3/2023 |
1.0.12 | 701 | 4/3/2023 |
1.0.11 | 1,907 | 4/1/2023 |
1.0.10 | 1,113 | 3/30/2023 |
1.0.9 | 848 | 3/26/2023 |
1.0.7 | 3,745 | 2/27/2023 |
1.0.6 | 750 | 2/26/2023 |
1.0.5 | 757 | 2/22/2023 |
1.0.4 | 932 | 2/22/2023 |
1.0.3 | 777 | 2/22/2023 |
1.0.2 | 1,289 | 2/12/2023 |
1.0.1 | 974 | 2/12/2023 |