Soenneker.Extensions.String
2.1.133
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.133
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.133
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.133" />
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.133
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.String, 2.1.133"
#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.133 // Install Soenneker.Extensions.String as a Cake Tool #tool nuget:?package=Soenneker.Extensions.String&version=2.1.133
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.26)
- Soenneker.Extensions.Char (>= 2.1.6)
- Soenneker.Extensions.Stream (>= 2.1.26)
- Soenneker.Utils.Random (>= 2.1.27)
- Soenneker.Utils.RegexCollection (>= 2.1.28)
NuGet packages (19)
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.236 | 13,852 | 9/17/2024 |
2.1.235 | 120 | 9/17/2024 |
2.1.234 | 44 | 9/17/2024 |
2.1.233 | 128 | 9/17/2024 |
2.1.232 | 49 | 9/17/2024 |
2.1.231 | 3,061 | 9/17/2024 |
2.1.230 | 54 | 9/17/2024 |
2.1.229 | 35,549 | 9/11/2024 |
2.1.228 | 13,661 | 9/11/2024 |
2.1.227 | 18,551 | 9/9/2024 |
2.1.226 | 8,060 | 9/9/2024 |
2.1.225 | 4,902 | 9/9/2024 |
2.1.224 | 7,031 | 9/9/2024 |
2.1.223 | 7,120 | 9/9/2024 |
2.1.222 | 64 | 9/9/2024 |
2.1.221 | 63 | 9/9/2024 |
2.1.220 | 28,753 | 9/5/2024 |
2.1.219 | 5,542 | 9/5/2024 |
2.1.218 | 64 | 9/5/2024 |
2.1.217 | 67 | 9/5/2024 |
2.1.216 | 922 | 9/5/2024 |
2.1.215 | 65 | 9/5/2024 |
2.1.214 | 2,957 | 9/5/2024 |
2.1.213 | 16,579 | 9/4/2024 |
2.1.212 | 37,194 | 8/20/2024 |
2.1.211 | 4,502 | 8/20/2024 |
2.1.210 | 84 | 8/20/2024 |
2.1.209 | 87 | 8/20/2024 |
2.1.208 | 3,794 | 8/20/2024 |
2.1.207 | 85 | 8/20/2024 |
2.1.206 | 80 | 8/20/2024 |
2.1.205 | 54,169 | 7/24/2024 |
2.1.204 | 4,475 | 7/24/2024 |
2.1.203 | 53 | 7/24/2024 |
2.1.202 | 20,015 | 7/13/2024 |
2.1.201 | 64 | 7/13/2024 |
2.1.200 | 12,112 | 7/10/2024 |
2.1.199 | 3,937 | 7/10/2024 |
2.1.198 | 91 | 7/10/2024 |
2.1.196 | 3,159 | 7/9/2024 |
2.1.194 | 2,557 | 7/9/2024 |
2.1.193 | 15,066 | 7/9/2024 |
2.1.192 | 4,293 | 7/9/2024 |
2.1.191 | 447 | 7/9/2024 |
2.1.190 | 68 | 7/9/2024 |
2.1.189 | 7,842 | 7/9/2024 |
2.1.188 | 2,046 | 7/8/2024 |
2.1.187 | 68 | 7/8/2024 |
2.1.186 | 96 | 7/8/2024 |
2.1.185 | 70 | 7/8/2024 |
2.1.184 | 72 | 7/8/2024 |
2.1.183 | 4,436 | 7/8/2024 |
2.1.182 | 68 | 7/8/2024 |
2.1.181 | 71 | 7/8/2024 |
2.1.180 | 400 | 7/8/2024 |
2.1.179 | 18,695 | 7/7/2024 |
2.1.178 | 2,653 | 7/7/2024 |
2.1.177 | 16,072 | 7/3/2024 |
2.1.176 | 27,855 | 6/14/2024 |
2.1.174 | 32,315 | 5/27/2024 |
2.1.173 | 2,622 | 5/27/2024 |
2.1.172 | 70 | 5/27/2024 |
2.1.171 | 15,009 | 5/25/2024 |
2.1.170 | 6,015 | 5/25/2024 |
2.1.169 | 82 | 5/25/2024 |
2.1.168 | 82 | 5/25/2024 |
2.1.167 | 3,355 | 5/25/2024 |
2.1.166 | 75 | 5/25/2024 |
2.1.165 | 76 | 5/25/2024 |
2.1.164 | 74 | 5/25/2024 |
2.1.163 | 3,224 | 5/25/2024 |
2.1.162 | 77 | 5/25/2024 |
2.1.161 | 14,534 | 5/22/2024 |
2.1.160 | 3,801 | 5/22/2024 |
2.1.159 | 1,753 | 5/22/2024 |
2.1.158 | 84 | 5/22/2024 |
2.1.157 | 76 | 5/22/2024 |
2.1.156 | 88 | 5/22/2024 |
2.1.155 | 7,387 | 5/22/2024 |
2.1.154 | 12,614 | 5/16/2024 |
2.1.153 | 34,856 | 4/28/2024 |
2.1.152 | 75 | 4/28/2024 |
2.1.151 | 5,545 | 4/28/2024 |
2.1.150 | 75 | 4/28/2024 |
2.1.149 | 88 | 4/28/2024 |
2.1.148 | 580 | 4/28/2024 |
2.1.147 | 83 | 4/28/2024 |
2.1.146 | 92 | 4/28/2024 |
2.1.145 | 4,418 | 4/27/2024 |
2.1.144 | 90 | 4/27/2024 |
2.1.143 | 80 | 4/27/2024 |
2.1.142 | 28,597 | 4/12/2024 |
2.1.141 | 94 | 4/12/2024 |
2.1.140 | 3,546 | 4/12/2024 |
2.1.139 | 106 | 4/12/2024 |
2.1.138 | 88 | 4/12/2024 |
2.1.137 | 2,901 | 4/12/2024 |
2.1.136 | 92 | 4/12/2024 |
2.1.135 | 86 | 4/12/2024 |
2.1.134 | 86 | 4/12/2024 |
2.1.133 | 19,438 | 4/1/2024 |
2.1.132 | 13,711 | 3/25/2024 |
2.1.131 | 15,254 | 3/18/2024 |
2.1.130 | 158 | 3/18/2024 |
2.1.129 | 288 | 3/18/2024 |
2.1.128 | 14,429 | 3/13/2024 |
2.1.127 | 150 | 3/13/2024 |
2.1.126 | 147 | 3/13/2024 |
2.1.125 | 1,505 | 3/13/2024 |
2.1.124 | 137 | 3/13/2024 |
2.1.123 | 151 | 3/13/2024 |
2.1.122 | 28,574 | 3/8/2024 |
2.1.121 | 12,100 | 3/3/2024 |
2.1.120 | 10,296 | 3/2/2024 |
2.1.119 | 1,917 | 3/1/2024 |
2.1.117 | 9,513 | 2/28/2024 |
2.1.116 | 17,812 | 2/25/2024 |
2.1.115 | 187 | 2/25/2024 |
2.1.114 | 14,612 | 2/21/2024 |
2.1.113 | 4,031 | 2/21/2024 |
2.1.112 | 2,178 | 2/21/2024 |
2.1.111 | 1,432 | 2/21/2024 |
2.1.110 | 212 | 2/21/2024 |
2.1.109 | 4,760 | 2/21/2024 |
2.1.108 | 201 | 2/21/2024 |
2.1.107 | 213 | 2/21/2024 |
2.1.106 | 12,035 | 2/20/2024 |
2.1.105 | 1,350 | 2/20/2024 |
2.1.104 | 7,899 | 2/19/2024 |
2.1.103 | 8,012 | 2/16/2024 |
2.1.102 | 5,518 | 2/16/2024 |
2.1.101 | 208 | 2/16/2024 |
2.1.100 | 5,534 | 2/16/2024 |
2.1.99 | 32,028 | 2/9/2024 |
2.1.98 | 28,152 | 2/7/2024 |
2.1.97 | 3,913 | 2/6/2024 |
2.1.96 | 2,304 | 2/6/2024 |
2.1.95 | 353 | 2/6/2024 |
2.1.94 | 230 | 2/6/2024 |
2.1.93 | 10,651 | 2/4/2024 |
2.1.92 | 79,289 | 1/15/2024 |
2.1.91 | 4,384 | 1/15/2024 |
2.1.90 | 339 | 1/15/2024 |
2.1.89 | 2,678 | 1/15/2024 |
2.1.88 | 294 | 1/15/2024 |
2.1.87 | 30,589 | 1/7/2024 |
2.1.86 | 6,109 | 1/5/2024 |
2.1.85 | 3,560 | 1/5/2024 |
2.1.84 | 328 | 1/5/2024 |
2.1.83 | 353 | 1/5/2024 |
2.1.82 | 4,402 | 1/5/2024 |
2.1.81 | 10,523 | 1/1/2024 |
2.1.80 | 405 | 1/1/2024 |
2.1.79 | 6,778 | 12/28/2023 |
2.1.78 | 3,625 | 12/28/2023 |
2.1.77 | 3,457 | 12/27/2023 |
2.1.76 | 372 | 12/27/2023 |
2.1.75 | 379 | 12/27/2023 |
2.1.74 | 4,312 | 12/27/2023 |
2.1.73 | 354 | 12/27/2023 |
2.1.72 | 370 | 12/27/2023 |
2.1.71 | 12,670 | 12/25/2023 |
2.1.70 | 744 | 12/25/2023 |
2.1.69 | 388 | 12/25/2023 |
2.1.68 | 389 | 12/25/2023 |
2.1.67 | 4,077 | 12/25/2023 |
2.1.66 | 10,553 | 12/24/2023 |
2.1.65 | 6,365 | 12/23/2023 |
2.1.64 | 1,599 | 12/23/2023 |
2.1.63 | 357 | 12/23/2023 |
2.1.62 | 4,616 | 12/23/2023 |
2.1.61 | 386 | 12/23/2023 |
2.1.60 | 349 | 12/23/2023 |
2.1.59 | 1,594 | 12/23/2023 |
2.1.58 | 357 | 12/23/2023 |
2.1.57 | 11,373 | 12/19/2023 |
2.1.56 | 3,793 | 12/18/2023 |
2.1.55 | 10,707 | 12/10/2023 |
2.1.51 | 5,384 | 12/10/2023 |
2.1.50 | 9,180 | 12/9/2023 |
2.1.49 | 399 | 12/9/2023 |
2.1.48 | 466 | 12/9/2023 |
2.1.47 | 416 | 12/9/2023 |
2.1.46 | 409 | 12/9/2023 |
2.1.45 | 435 | 12/9/2023 |
2.1.44 | 6,223 | 12/9/2023 |
2.1.43 | 9,743 | 12/6/2023 |
2.1.42 | 7,689 | 12/4/2023 |
2.1.41 | 5,119 | 12/4/2023 |
2.1.40 | 447 | 12/4/2023 |
2.1.39 | 737 | 12/4/2023 |
2.1.38 | 468 | 12/4/2023 |
2.1.37 | 12,736 | 11/23/2023 |
2.1.36 | 389 | 11/23/2023 |
2.1.35 | 670 | 11/23/2023 |
2.1.34 | 422 | 11/23/2023 |
2.1.33 | 1,722 | 11/23/2023 |
2.1.32 | 2,726 | 11/23/2023 |
2.1.31 | 7,731 | 11/20/2023 |
2.1.30 | 3,084 | 11/20/2023 |
2.1.29 | 5,520 | 11/19/2023 |
2.1.28 | 920 | 11/19/2023 |
2.1.27 | 420 | 11/19/2023 |
2.1.26 | 432 | 11/19/2023 |
2.1.25 | 403 | 11/19/2023 |
2.1.24 | 2,003 | 11/19/2023 |
2.1.23 | 8,300 | 11/18/2023 |
2.1.22 | 446 | 11/18/2023 |
2.1.21 | 2,820 | 11/18/2023 |
2.1.20 | 1,924 | 11/18/2023 |
2.1.19 | 428 | 11/18/2023 |
2.1.18 | 4,865 | 11/17/2023 |
2.1.17 | 1,211 | 11/17/2023 |
2.1.16 | 452 | 11/17/2023 |
2.1.15 | 438 | 11/17/2023 |
2.1.14 | 1,540 | 11/17/2023 |
2.1.13 | 6,583 | 11/17/2023 |
2.1.12 | 1,618 | 11/17/2023 |
2.1.11 | 421 | 11/17/2023 |
2.1.10 | 443 | 11/17/2023 |
2.1.9 | 452 | 11/17/2023 |
2.1.8 | 2,991 | 11/17/2023 |
2.1.7 | 1,399 | 11/16/2023 |
2.1.6 | 390 | 11/16/2023 |
2.1.5 | 731 | 11/16/2023 |
2.1.4 | 427 | 11/16/2023 |
2.0.140 | 4,574 | 11/15/2023 |
2.0.139 | 452 | 11/15/2023 |
2.0.138 | 431 | 11/15/2023 |
2.0.137 | 432 | 11/15/2023 |
2.0.136 | 423 | 11/15/2023 |
2.0.3 | 410 | 11/16/2023 |
2.0.2 | 432 | 11/16/2023 |
2.0.1 | 388 | 11/16/2023 |
1.0.135 | 10,289 | 11/10/2023 |
1.0.134 | 444 | 11/10/2023 |
1.0.133 | 5,027 | 11/9/2023 |
1.0.132 | 401 | 11/9/2023 |
1.0.131 | 449 | 11/9/2023 |
1.0.130 | 1,784 | 11/8/2023 |
1.0.129 | 9,065 | 11/6/2023 |
1.0.128 | 426 | 11/6/2023 |
1.0.127 | 460 | 11/6/2023 |
1.0.126 | 465 | 11/6/2023 |
1.0.125 | 3,388 | 11/3/2023 |
1.0.124 | 6,067 | 11/2/2023 |
1.0.123 | 472 | 11/2/2023 |
1.0.122 | 457 | 11/2/2023 |
1.0.121 | 433 | 11/2/2023 |
1.0.120 | 3,247 | 11/1/2023 |
1.0.119 | 16,629 | 10/18/2023 |
1.0.118 | 498 | 10/18/2023 |
1.0.117 | 484 | 10/18/2023 |
1.0.116 | 471 | 10/18/2023 |
1.0.115 | 3,631 | 10/17/2023 |
1.0.114 | 4,333 | 10/16/2023 |
1.0.113 | 484 | 10/16/2023 |
1.0.112 | 477 | 10/16/2023 |
1.0.111 | 506 | 10/16/2023 |
1.0.110 | 6,507 | 10/13/2023 |
1.0.109 | 529 | 10/13/2023 |
1.0.108 | 11,731 | 9/19/2023 |
1.0.107 | 519 | 9/19/2023 |
1.0.106 | 518 | 9/19/2023 |
1.0.105 | 472 | 9/19/2023 |
1.0.104 | 5,924 | 9/18/2023 |
1.0.103 | 519 | 9/18/2023 |
1.0.102 | 13,984 | 8/30/2023 |
1.0.101 | 575 | 8/30/2023 |
1.0.100 | 533 | 8/30/2023 |
1.0.99 | 534 | 8/30/2023 |
1.0.98 | 554 | 8/30/2023 |
1.0.97 | 10,359 | 8/25/2023 |
1.0.96 | 4,799 | 8/24/2023 |
1.0.95 | 543 | 8/24/2023 |
1.0.94 | 9,143 | 8/18/2023 |
1.0.93 | 569 | 8/18/2023 |
1.0.92 | 4,304 | 8/17/2023 |
1.0.91 | 538 | 8/17/2023 |
1.0.90 | 551 | 8/17/2023 |
1.0.89 | 16,137 | 8/8/2023 |
1.0.88 | 571 | 8/8/2023 |
1.0.87 | 5,230 | 8/7/2023 |
1.0.86 | 584 | 8/7/2023 |
1.0.85 | 570 | 8/7/2023 |
1.0.84 | 19,616 | 7/10/2023 |
1.0.83 | 631 | 7/10/2023 |
1.0.82 | 664 | 7/10/2023 |
1.0.81 | 679 | 7/10/2023 |
1.0.80 | 4,406 | 7/7/2023 |
1.0.79 | 611 | 7/7/2023 |
1.0.78 | 14,578 | 6/29/2023 |
1.0.77 | 4,055 | 6/28/2023 |
1.0.76 | 637 | 6/28/2023 |
1.0.75 | 674 | 6/28/2023 |
1.0.74 | 42,386 | 6/7/2023 |
1.0.73 | 5,646 | 6/7/2023 |
1.0.72 | 676 | 6/7/2023 |
1.0.71 | 668 | 6/7/2023 |
1.0.70 | 6,763 | 6/6/2023 |
1.0.69 | 656 | 6/6/2023 |
1.0.68 | 2,632 | 6/5/2023 |
1.0.67 | 637 | 6/5/2023 |
1.0.66 | 6,447 | 6/2/2023 |
1.0.65 | 673 | 6/2/2023 |
1.0.64 | 667 | 6/2/2023 |
1.0.63 | 26,024 | 5/30/2023 |
1.0.62 | 661 | 5/30/2023 |
1.0.61 | 7,583 | 5/29/2023 |
1.0.60 | 669 | 5/29/2023 |
1.0.59 | 6,167 | 5/26/2023 |
1.0.58 | 11,360 | 5/25/2023 |
1.0.57 | 678 | 5/25/2023 |
1.0.56 | 5,823 | 5/24/2023 |
1.0.55 | 691 | 5/24/2023 |
1.0.54 | 688 | 5/24/2023 |
1.0.53 | 665 | 5/24/2023 |
1.0.52 | 764 | 5/24/2023 |
1.0.51 | 3,838 | 5/23/2023 |
1.0.50 | 678 | 5/23/2023 |
1.0.49 | 665 | 5/23/2023 |
1.0.46 | 12,324 | 5/22/2023 |
1.0.45 | 9,952 | 5/18/2023 |
1.0.44 | 5,930 | 5/17/2023 |
1.0.43 | 660 | 5/17/2023 |
1.0.42 | 644 | 5/17/2023 |
1.0.41 | 646 | 5/17/2023 |
1.0.40 | 15,598 | 4/24/2023 |
1.0.39 | 2,231 | 4/24/2023 |
1.0.38 | 718 | 4/24/2023 |
1.0.37 | 3,691 | 4/21/2023 |
1.0.36 | 674 | 4/21/2023 |
1.0.35 | 675 | 4/21/2023 |
1.0.34 | 4,068 | 4/20/2023 |
1.0.33 | 831 | 4/20/2023 |
1.0.32 | 788 | 4/20/2023 |
1.0.31 | 3,829 | 4/19/2023 |
1.0.30 | 1,710 | 4/18/2023 |
1.0.29 | 686 | 4/18/2023 |
1.0.28 | 1,781 | 4/18/2023 |
1.0.27 | 3,070 | 4/17/2023 |
1.0.26 | 767 | 4/16/2023 |
1.0.25 | 725 | 4/16/2023 |
1.0.24 | 3,183 | 4/14/2023 |
1.0.23 | 2,337 | 4/13/2023 |
1.0.22 | 2,232 | 4/12/2023 |
1.0.21 | 711 | 4/12/2023 |
1.0.20 | 705 | 4/12/2023 |
1.0.19 | 1,568 | 4/11/2023 |
1.0.18 | 764 | 4/11/2023 |
1.0.17 | 2,404 | 4/11/2023 |
1.0.16 | 2,741 | 4/7/2023 |
1.0.15 | 3,447 | 4/3/2023 |
1.0.14 | 738 | 4/3/2023 |
1.0.13 | 726 | 4/3/2023 |
1.0.12 | 704 | 4/3/2023 |
1.0.11 | 1,909 | 4/1/2023 |
1.0.10 | 1,115 | 3/30/2023 |
1.0.9 | 851 | 3/26/2023 |
1.0.7 | 3,752 | 2/27/2023 |
1.0.6 | 751 | 2/26/2023 |
1.0.5 | 759 | 2/22/2023 |
1.0.4 | 935 | 2/22/2023 |
1.0.3 | 780 | 2/22/2023 |
1.0.2 | 1,293 | 2/12/2023 |
1.0.1 | 975 | 2/12/2023 |