Soenneker.Extensions.String
2.1.233
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.233
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.233
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.233" />
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.233
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.String, 2.1.233"
#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.233 // Install Soenneker.Extensions.String as a Cake Tool #tool nuget:?package=Soenneker.Extensions.String&version=2.1.233
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.39)
- Soenneker.Extensions.Char (>= 2.1.21)
- Soenneker.Extensions.Stream (>= 2.1.39)
- Soenneker.Extensions.Task (>= 2.1.62)
- Soenneker.Utils.Random (>= 2.1.44)
- Soenneker.Utils.RegexCollection (>= 2.1.43)
NuGet packages (21)
Showing the top 5 NuGet packages that depend on Soenneker.Extensions.String:
Package | Downloads |
---|---|
Soenneker.Extensions.Configuration
A collection of helpful IConfiguration extension methods |
|
Soenneker.Utils.MemoryStream
An easy modern MemoryStream utility |
|
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.253 | 22,663 | 10/28/2024 |
2.1.252 | 109,809 | 10/1/2024 |
2.1.251 | 16,845 | 9/30/2024 |
2.1.250 | 29,411 | 9/27/2024 |
2.1.249 | 87 | 9/27/2024 |
2.1.248 | 76 | 9/27/2024 |
2.1.247 | 2,778 | 9/27/2024 |
2.1.246 | 71 | 9/27/2024 |
2.1.245 | 70 | 9/27/2024 |
2.1.244 | 73 | 9/27/2024 |
2.1.243 | 53,473 | 9/23/2024 |
2.1.242 | 752 | 9/23/2024 |
2.1.241 | 3,712 | 9/23/2024 |
2.1.240 | 79 | 9/23/2024 |
2.1.239 | 1,262 | 9/23/2024 |
2.1.238 | 85 | 9/23/2024 |
2.1.237 | 7,307 | 9/22/2024 |
2.1.236 | 28,171 | 9/17/2024 |
2.1.235 | 200 | 9/17/2024 |
2.1.234 | 86 | 9/17/2024 |
2.1.233 | 189 | 9/17/2024 |
2.1.232 | 84 | 9/17/2024 |
2.1.231 | 4,163 | 9/17/2024 |
2.1.230 | 108 | 9/17/2024 |
2.1.229 | 49,463 | 9/11/2024 |
2.1.228 | 17,028 | 9/11/2024 |
2.1.227 | 23,438 | 9/9/2024 |
2.1.226 | 9,633 | 9/9/2024 |
2.1.225 | 5,896 | 9/9/2024 |
2.1.224 | 8,308 | 9/9/2024 |
2.1.223 | 8,945 | 9/9/2024 |
2.1.222 | 88 | 9/9/2024 |
2.1.221 | 87 | 9/9/2024 |
2.1.220 | 36,376 | 9/5/2024 |
2.1.219 | 7,155 | 9/5/2024 |
2.1.218 | 91 | 9/5/2024 |
2.1.217 | 88 | 9/5/2024 |
2.1.216 | 1,172 | 9/5/2024 |
2.1.215 | 91 | 9/5/2024 |
2.1.214 | 3,874 | 9/5/2024 |
2.1.213 | 20,783 | 9/4/2024 |
2.1.212 | 49,540 | 8/20/2024 |
2.1.211 | 5,614 | 8/20/2024 |
2.1.210 | 100 | 8/20/2024 |
2.1.209 | 103 | 8/20/2024 |
2.1.208 | 4,992 | 8/20/2024 |
2.1.207 | 107 | 8/20/2024 |
2.1.206 | 96 | 8/20/2024 |
2.1.205 | 72,626 | 7/24/2024 |
2.1.204 | 5,765 | 7/24/2024 |
2.1.203 | 68 | 7/24/2024 |
2.1.202 | 26,648 | 7/13/2024 |
2.1.201 | 98 | 7/13/2024 |
2.1.200 | 15,643 | 7/10/2024 |
2.1.199 | 4,607 | 7/10/2024 |
2.1.198 | 113 | 7/10/2024 |
2.1.196 | 4,259 | 7/9/2024 |
2.1.194 | 3,317 | 7/9/2024 |
2.1.193 | 19,468 | 7/9/2024 |
2.1.192 | 5,893 | 7/9/2024 |
2.1.191 | 636 | 7/9/2024 |
2.1.190 | 90 | 7/9/2024 |
2.1.189 | 9,175 | 7/9/2024 |
2.1.188 | 2,789 | 7/8/2024 |
2.1.187 | 91 | 7/8/2024 |
2.1.186 | 113 | 7/8/2024 |
2.1.185 | 82 | 7/8/2024 |
2.1.184 | 86 | 7/8/2024 |
2.1.183 | 5,355 | 7/8/2024 |
2.1.182 | 83 | 7/8/2024 |
2.1.181 | 84 | 7/8/2024 |
2.1.180 | 527 | 7/8/2024 |
2.1.179 | 24,738 | 7/7/2024 |
2.1.178 | 3,213 | 7/7/2024 |
2.1.177 | 21,986 | 7/3/2024 |
2.1.176 | 36,934 | 6/14/2024 |
2.1.174 | 43,151 | 5/27/2024 |
2.1.173 | 3,071 | 5/27/2024 |
2.1.172 | 85 | 5/27/2024 |
2.1.171 | 20,154 | 5/25/2024 |
2.1.170 | 7,410 | 5/25/2024 |
2.1.169 | 98 | 5/25/2024 |
2.1.168 | 96 | 5/25/2024 |
2.1.167 | 4,371 | 5/25/2024 |
2.1.166 | 91 | 5/25/2024 |
2.1.165 | 94 | 5/25/2024 |
2.1.164 | 92 | 5/25/2024 |
2.1.163 | 4,071 | 5/25/2024 |
2.1.162 | 91 | 5/25/2024 |
2.1.161 | 18,899 | 5/22/2024 |
2.1.160 | 4,753 | 5/22/2024 |
2.1.159 | 2,364 | 5/22/2024 |
2.1.158 | 100 | 5/22/2024 |
2.1.157 | 98 | 5/22/2024 |
2.1.156 | 107 | 5/22/2024 |
2.1.155 | 9,755 | 5/22/2024 |
2.1.154 | 16,282 | 5/16/2024 |
2.1.153 | 47,041 | 4/28/2024 |
2.1.152 | 88 | 4/28/2024 |
2.1.151 | 7,231 | 4/28/2024 |
2.1.150 | 89 | 4/28/2024 |
2.1.149 | 100 | 4/28/2024 |
2.1.148 | 662 | 4/28/2024 |
2.1.147 | 99 | 4/28/2024 |
2.1.146 | 108 | 4/28/2024 |
2.1.145 | 5,189 | 4/27/2024 |
2.1.144 | 117 | 4/27/2024 |
2.1.143 | 94 | 4/27/2024 |
2.1.142 | 37,853 | 4/12/2024 |
2.1.141 | 118 | 4/12/2024 |
2.1.140 | 4,769 | 4/12/2024 |
2.1.139 | 124 | 4/12/2024 |
2.1.138 | 102 | 4/12/2024 |
2.1.137 | 3,106 | 4/12/2024 |
2.1.136 | 115 | 4/12/2024 |
2.1.135 | 100 | 4/12/2024 |
2.1.134 | 99 | 4/12/2024 |
2.1.133 | 25,366 | 4/1/2024 |
2.1.132 | 18,468 | 3/25/2024 |
2.1.131 | 20,046 | 3/18/2024 |
2.1.130 | 176 | 3/18/2024 |
2.1.129 | 336 | 3/18/2024 |
2.1.128 | 18,818 | 3/13/2024 |
2.1.127 | 163 | 3/13/2024 |
2.1.126 | 161 | 3/13/2024 |
2.1.125 | 1,643 | 3/13/2024 |
2.1.124 | 157 | 3/13/2024 |
2.1.123 | 164 | 3/13/2024 |
2.1.122 | 37,703 | 3/8/2024 |
2.1.121 | 15,837 | 3/3/2024 |
2.1.120 | 13,233 | 3/2/2024 |
2.1.119 | 2,046 | 3/1/2024 |
2.1.117 | 12,037 | 2/28/2024 |
2.1.116 | 22,876 | 2/25/2024 |
2.1.115 | 205 | 2/25/2024 |
2.1.114 | 18,470 | 2/21/2024 |
2.1.113 | 4,679 | 2/21/2024 |
2.1.112 | 2,790 | 2/21/2024 |
2.1.111 | 1,846 | 2/21/2024 |
2.1.110 | 227 | 2/21/2024 |
2.1.109 | 5,953 | 2/21/2024 |
2.1.108 | 218 | 2/21/2024 |
2.1.107 | 233 | 2/21/2024 |
2.1.106 | 14,911 | 2/20/2024 |
2.1.105 | 1,617 | 2/20/2024 |
2.1.104 | 9,942 | 2/19/2024 |
2.1.103 | 10,171 | 2/16/2024 |
2.1.102 | 6,879 | 2/16/2024 |
2.1.101 | 223 | 2/16/2024 |
2.1.100 | 6,548 | 2/16/2024 |
2.1.99 | 40,065 | 2/9/2024 |
2.1.98 | 36,213 | 2/7/2024 |
2.1.97 | 4,554 | 2/6/2024 |
2.1.96 | 2,760 | 2/6/2024 |
2.1.95 | 440 | 2/6/2024 |
2.1.94 | 244 | 2/6/2024 |
2.1.93 | 13,378 | 2/4/2024 |
2.1.92 | 98,491 | 1/15/2024 |
2.1.91 | 5,340 | 1/15/2024 |
2.1.90 | 357 | 1/15/2024 |
2.1.89 | 3,099 | 1/15/2024 |
2.1.88 | 307 | 1/15/2024 |
2.1.87 | 37,271 | 1/7/2024 |
2.1.86 | 7,334 | 1/5/2024 |
2.1.85 | 4,428 | 1/5/2024 |
2.1.84 | 343 | 1/5/2024 |
2.1.83 | 366 | 1/5/2024 |
2.1.82 | 5,032 | 1/5/2024 |
2.1.81 | 12,687 | 1/1/2024 |
2.1.80 | 421 | 1/1/2024 |
2.1.79 | 8,312 | 12/28/2023 |
2.1.78 | 4,221 | 12/28/2023 |
2.1.77 | 4,125 | 12/27/2023 |
2.1.76 | 395 | 12/27/2023 |
2.1.75 | 396 | 12/27/2023 |
2.1.74 | 4,976 | 12/27/2023 |
2.1.73 | 368 | 12/27/2023 |
2.1.72 | 393 | 12/27/2023 |
2.1.71 | 15,644 | 12/25/2023 |
2.1.70 | 853 | 12/25/2023 |
2.1.69 | 407 | 12/25/2023 |
2.1.68 | 407 | 12/25/2023 |
2.1.67 | 4,690 | 12/25/2023 |
2.1.66 | 12,681 | 12/24/2023 |
2.1.65 | 7,648 | 12/23/2023 |
2.1.64 | 2,061 | 12/23/2023 |
2.1.63 | 368 | 12/23/2023 |
2.1.62 | 5,480 | 12/23/2023 |
2.1.61 | 399 | 12/23/2023 |
2.1.60 | 363 | 12/23/2023 |
2.1.59 | 1,809 | 12/23/2023 |
2.1.58 | 372 | 12/23/2023 |
2.1.57 | 13,643 | 12/19/2023 |
2.1.56 | 4,539 | 12/18/2023 |
2.1.55 | 12,788 | 12/10/2023 |
2.1.51 | 6,228 | 12/10/2023 |
2.1.50 | 10,990 | 12/9/2023 |
2.1.49 | 415 | 12/9/2023 |
2.1.48 | 500 | 12/9/2023 |
2.1.47 | 432 | 12/9/2023 |
2.1.46 | 427 | 12/9/2023 |
2.1.45 | 450 | 12/9/2023 |
2.1.44 | 7,411 | 12/9/2023 |
2.1.43 | 11,538 | 12/6/2023 |
2.1.42 | 9,286 | 12/4/2023 |
2.1.41 | 5,912 | 12/4/2023 |
2.1.40 | 460 | 12/4/2023 |
2.1.39 | 879 | 12/4/2023 |
2.1.38 | 499 | 12/4/2023 |
2.1.37 | 15,691 | 11/23/2023 |
2.1.36 | 427 | 11/23/2023 |
2.1.35 | 796 | 11/23/2023 |
2.1.34 | 450 | 11/23/2023 |
2.1.33 | 2,041 | 11/23/2023 |
2.1.32 | 3,203 | 11/23/2023 |
2.1.31 | 9,481 | 11/20/2023 |
2.1.30 | 3,831 | 11/20/2023 |
2.1.29 | 6,791 | 11/19/2023 |
2.1.28 | 1,150 | 11/19/2023 |
2.1.27 | 434 | 11/19/2023 |
2.1.26 | 444 | 11/19/2023 |
2.1.25 | 418 | 11/19/2023 |
2.1.24 | 2,317 | 11/19/2023 |
2.1.23 | 10,009 | 11/18/2023 |
2.1.22 | 465 | 11/18/2023 |
2.1.21 | 3,295 | 11/18/2023 |
2.1.20 | 2,225 | 11/18/2023 |
2.1.19 | 443 | 11/18/2023 |
2.1.18 | 5,785 | 11/17/2023 |
2.1.17 | 1,458 | 11/17/2023 |
2.1.16 | 470 | 11/17/2023 |
2.1.15 | 452 | 11/17/2023 |
2.1.14 | 1,874 | 11/17/2023 |
2.1.13 | 7,964 | 11/17/2023 |
2.1.12 | 2,096 | 11/17/2023 |
2.1.11 | 446 | 11/17/2023 |
2.1.10 | 480 | 11/17/2023 |
2.1.9 | 494 | 11/17/2023 |
2.1.8 | 3,676 | 11/17/2023 |
2.1.7 | 1,653 | 11/16/2023 |
2.1.6 | 405 | 11/16/2023 |
2.1.5 | 902 | 11/16/2023 |
2.1.4 | 442 | 11/16/2023 |
2.0.140 | 5,530 | 11/15/2023 |
2.0.139 | 465 | 11/15/2023 |
2.0.138 | 446 | 11/15/2023 |
2.0.137 | 446 | 11/15/2023 |
2.0.136 | 441 | 11/15/2023 |
2.0.3 | 426 | 11/16/2023 |
2.0.2 | 449 | 11/16/2023 |
2.0.1 | 404 | 11/16/2023 |
1.0.135 | 12,223 | 11/10/2023 |
1.0.134 | 472 | 11/10/2023 |
1.0.133 | 5,813 | 11/9/2023 |
1.0.132 | 420 | 11/9/2023 |
1.0.131 | 465 | 11/9/2023 |
1.0.130 | 2,090 | 11/8/2023 |
1.0.129 | 10,488 | 11/6/2023 |
1.0.128 | 446 | 11/6/2023 |
1.0.127 | 475 | 11/6/2023 |
1.0.126 | 478 | 11/6/2023 |
1.0.125 | 3,894 | 11/3/2023 |
1.0.124 | 7,079 | 11/2/2023 |
1.0.123 | 488 | 11/2/2023 |
1.0.122 | 475 | 11/2/2023 |
1.0.121 | 447 | 11/2/2023 |
1.0.120 | 3,764 | 11/1/2023 |
1.0.119 | 19,694 | 10/18/2023 |
1.0.118 | 510 | 10/18/2023 |
1.0.117 | 497 | 10/18/2023 |
1.0.116 | 487 | 10/18/2023 |
1.0.115 | 4,228 | 10/17/2023 |
1.0.114 | 4,956 | 10/16/2023 |
1.0.113 | 498 | 10/16/2023 |
1.0.112 | 492 | 10/16/2023 |
1.0.111 | 524 | 10/16/2023 |
1.0.110 | 7,343 | 10/13/2023 |
1.0.109 | 543 | 10/13/2023 |
1.0.108 | 13,828 | 9/19/2023 |
1.0.107 | 534 | 9/19/2023 |
1.0.106 | 533 | 9/19/2023 |
1.0.105 | 492 | 9/19/2023 |
1.0.104 | 6,594 | 9/18/2023 |
1.0.103 | 535 | 9/18/2023 |
1.0.102 | 16,201 | 8/30/2023 |
1.0.101 | 592 | 8/30/2023 |
1.0.100 | 552 | 8/30/2023 |
1.0.99 | 555 | 8/30/2023 |
1.0.98 | 574 | 8/30/2023 |
1.0.97 | 11,997 | 8/25/2023 |
1.0.96 | 5,467 | 8/24/2023 |
1.0.95 | 563 | 8/24/2023 |
1.0.94 | 10,672 | 8/18/2023 |
1.0.93 | 586 | 8/18/2023 |
1.0.92 | 4,922 | 8/17/2023 |
1.0.91 | 558 | 8/17/2023 |
1.0.90 | 570 | 8/17/2023 |
1.0.89 | 18,428 | 8/8/2023 |
1.0.88 | 590 | 8/8/2023 |
1.0.87 | 5,972 | 8/7/2023 |
1.0.86 | 602 | 8/7/2023 |
1.0.85 | 589 | 8/7/2023 |
1.0.84 | 22,326 | 7/10/2023 |
1.0.83 | 650 | 7/10/2023 |
1.0.82 | 680 | 7/10/2023 |
1.0.81 | 694 | 7/10/2023 |
1.0.80 | 5,031 | 7/7/2023 |
1.0.79 | 626 | 7/7/2023 |
1.0.78 | 16,527 | 6/29/2023 |
1.0.77 | 4,555 | 6/28/2023 |
1.0.76 | 653 | 6/28/2023 |
1.0.75 | 689 | 6/28/2023 |
1.0.74 | 47,756 | 6/7/2023 |
1.0.73 | 6,103 | 6/7/2023 |
1.0.72 | 692 | 6/7/2023 |
1.0.71 | 685 | 6/7/2023 |
1.0.70 | 7,384 | 6/6/2023 |
1.0.69 | 682 | 6/6/2023 |
1.0.68 | 2,834 | 6/5/2023 |
1.0.67 | 654 | 6/5/2023 |
1.0.66 | 7,211 | 6/2/2023 |
1.0.65 | 708 | 6/2/2023 |
1.0.64 | 688 | 6/2/2023 |
1.0.63 | 28,613 | 5/30/2023 |
1.0.62 | 676 | 5/30/2023 |
1.0.61 | 8,283 | 5/29/2023 |
1.0.60 | 688 | 5/29/2023 |
1.0.59 | 6,624 | 5/26/2023 |
1.0.58 | 12,378 | 5/25/2023 |
1.0.57 | 695 | 5/25/2023 |
1.0.56 | 6,363 | 5/24/2023 |
1.0.55 | 710 | 5/24/2023 |
1.0.54 | 706 | 5/24/2023 |
1.0.53 | 684 | 5/24/2023 |
1.0.52 | 788 | 5/24/2023 |
1.0.51 | 4,226 | 5/23/2023 |
1.0.50 | 690 | 5/23/2023 |
1.0.49 | 682 | 5/23/2023 |
1.0.46 | 13,447 | 5/22/2023 |
1.0.45 | 10,969 | 5/18/2023 |
1.0.44 | 6,559 | 5/17/2023 |
1.0.43 | 676 | 5/17/2023 |
1.0.42 | 664 | 5/17/2023 |
1.0.41 | 661 | 5/17/2023 |
1.0.40 | 17,381 | 4/24/2023 |
1.0.39 | 2,389 | 4/24/2023 |
1.0.38 | 735 | 4/24/2023 |
1.0.37 | 4,063 | 4/21/2023 |
1.0.36 | 687 | 4/21/2023 |
1.0.35 | 691 | 4/21/2023 |
1.0.34 | 4,511 | 4/20/2023 |
1.0.33 | 877 | 4/20/2023 |
1.0.32 | 824 | 4/20/2023 |
1.0.31 | 4,153 | 4/19/2023 |
1.0.30 | 1,881 | 4/18/2023 |
1.0.29 | 705 | 4/18/2023 |
1.0.28 | 1,872 | 4/18/2023 |
1.0.27 | 3,351 | 4/17/2023 |
1.0.26 | 798 | 4/16/2023 |
1.0.25 | 740 | 4/16/2023 |
1.0.24 | 3,499 | 4/14/2023 |
1.0.23 | 2,549 | 4/13/2023 |
1.0.22 | 2,444 | 4/12/2023 |
1.0.21 | 724 | 4/12/2023 |
1.0.20 | 724 | 4/12/2023 |
1.0.19 | 1,750 | 4/11/2023 |
1.0.18 | 791 | 4/11/2023 |
1.0.17 | 2,576 | 4/11/2023 |
1.0.16 | 2,985 | 4/7/2023 |
1.0.15 | 3,800 | 4/3/2023 |
1.0.14 | 756 | 4/3/2023 |
1.0.13 | 759 | 4/3/2023 |
1.0.12 | 720 | 4/3/2023 |
1.0.11 | 2,046 | 4/1/2023 |
1.0.10 | 1,151 | 3/30/2023 |
1.0.9 | 881 | 3/26/2023 |
1.0.7 | 3,963 | 2/27/2023 |
1.0.6 | 786 | 2/26/2023 |
1.0.5 | 778 | 2/22/2023 |
1.0.4 | 970 | 2/22/2023 |
1.0.3 | 798 | 2/22/2023 |
1.0.2 | 1,347 | 2/12/2023 |
1.0.1 | 1,000 | 2/12/2023 |