Soenneker.Extensions.String
2.1.154
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.154
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.154
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.154" />
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.154
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.String, 2.1.154"
#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.154
// Install Soenneker.Extensions.String as a Cake Tool
#tool nuget:?package=Soenneker.Extensions.String&version=2.1.154
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.30)
- Soenneker.Extensions.Char (>= 2.1.10)
- Soenneker.Extensions.Stream (>= 2.1.30)
- Soenneker.Utils.Random (>= 2.1.32)
- Soenneker.Utils.RegexCollection (>= 2.1.32)
NuGet packages (15)
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.174 | 29,038 | 5/27/2024 |
2.1.173 | 2,609 | 5/27/2024 |
2.1.172 | 55 | 5/27/2024 |
2.1.171 | 14,977 | 5/25/2024 |
2.1.170 | 6,003 | 5/25/2024 |
2.1.169 | 71 | 5/25/2024 |
2.1.168 | 66 | 5/25/2024 |
2.1.167 | 3,342 | 5/25/2024 |
2.1.166 | 64 | 5/25/2024 |
2.1.165 | 64 | 5/25/2024 |
2.1.164 | 63 | 5/25/2024 |
2.1.163 | 3,212 | 5/25/2024 |
2.1.162 | 65 | 5/25/2024 |
2.1.161 | 14,513 | 5/22/2024 |
2.1.160 | 3,770 | 5/22/2024 |
2.1.159 | 1,727 | 5/22/2024 |
2.1.158 | 73 | 5/22/2024 |
2.1.157 | 65 | 5/22/2024 |
2.1.156 | 66 | 5/22/2024 |
2.1.155 | 7,359 | 5/22/2024 |
2.1.154 | 12,576 | 5/16/2024 |
2.1.153 | 34,624 | 4/28/2024 |
2.1.152 | 69 | 4/28/2024 |
2.1.151 | 5,469 | 4/28/2024 |
2.1.150 | 70 | 4/28/2024 |
2.1.149 | 68 | 4/28/2024 |
2.1.148 | 573 | 4/28/2024 |
2.1.147 | 70 | 4/28/2024 |
2.1.146 | 70 | 4/28/2024 |
2.1.145 | 4,407 | 4/27/2024 |
2.1.144 | 83 | 4/27/2024 |
2.1.143 | 67 | 4/27/2024 |
2.1.142 | 28,469 | 4/12/2024 |
2.1.141 | 85 | 4/12/2024 |
2.1.140 | 3,500 | 4/12/2024 |
2.1.139 | 92 | 4/12/2024 |
2.1.138 | 78 | 4/12/2024 |
2.1.137 | 2,881 | 4/12/2024 |
2.1.136 | 81 | 4/12/2024 |
2.1.135 | 76 | 4/12/2024 |
2.1.134 | 79 | 4/12/2024 |
2.1.133 | 18,925 | 4/1/2024 |
2.1.132 | 13,500 | 3/25/2024 |
2.1.131 | 15,063 | 3/18/2024 |
2.1.130 | 151 | 3/18/2024 |
2.1.129 | 267 | 3/18/2024 |
2.1.128 | 14,182 | 3/13/2024 |
2.1.127 | 140 | 3/13/2024 |
2.1.126 | 138 | 3/13/2024 |
2.1.125 | 1,493 | 3/13/2024 |
2.1.124 | 127 | 3/13/2024 |
2.1.123 | 126 | 3/13/2024 |
2.1.122 | 28,155 | 3/8/2024 |
2.1.121 | 11,936 | 3/3/2024 |
2.1.120 | 10,168 | 3/2/2024 |
2.1.119 | 1,898 | 3/1/2024 |
2.1.117 | 9,403 | 2/28/2024 |
2.1.116 | 17,641 | 2/25/2024 |
2.1.115 | 173 | 2/25/2024 |
2.1.114 | 14,503 | 2/21/2024 |
2.1.113 | 3,987 | 2/21/2024 |
2.1.112 | 2,157 | 2/21/2024 |
2.1.111 | 1,401 | 2/21/2024 |
2.1.110 | 204 | 2/21/2024 |
2.1.109 | 4,708 | 2/21/2024 |
2.1.108 | 192 | 2/21/2024 |
2.1.107 | 195 | 2/21/2024 |
2.1.106 | 11,855 | 2/20/2024 |
2.1.105 | 1,337 | 2/20/2024 |
2.1.104 | 7,791 | 2/19/2024 |
2.1.103 | 7,878 | 2/16/2024 |
2.1.102 | 5,425 | 2/16/2024 |
2.1.101 | 198 | 2/16/2024 |
2.1.100 | 5,439 | 2/16/2024 |
2.1.99 | 31,651 | 2/9/2024 |
2.1.98 | 27,845 | 2/7/2024 |
2.1.97 | 3,878 | 2/6/2024 |
2.1.96 | 2,266 | 2/6/2024 |
2.1.95 | 341 | 2/6/2024 |
2.1.94 | 217 | 2/6/2024 |
2.1.93 | 10,550 | 2/4/2024 |
2.1.92 | 78,628 | 1/15/2024 |
2.1.91 | 4,352 | 1/15/2024 |
2.1.90 | 329 | 1/15/2024 |
2.1.89 | 2,657 | 1/15/2024 |
2.1.88 | 284 | 1/15/2024 |
2.1.87 | 30,468 | 1/7/2024 |
2.1.86 | 6,051 | 1/5/2024 |
2.1.85 | 3,525 | 1/5/2024 |
2.1.84 | 318 | 1/5/2024 |
2.1.83 | 342 | 1/5/2024 |
2.1.82 | 4,370 | 1/5/2024 |
2.1.81 | 10,450 | 1/1/2024 |
2.1.80 | 394 | 1/1/2024 |
2.1.79 | 6,723 | 12/28/2023 |
2.1.78 | 3,605 | 12/28/2023 |
2.1.77 | 3,408 | 12/27/2023 |
2.1.76 | 363 | 12/27/2023 |
2.1.75 | 371 | 12/27/2023 |
2.1.74 | 4,267 | 12/27/2023 |
2.1.73 | 341 | 12/27/2023 |
2.1.72 | 362 | 12/27/2023 |
2.1.71 | 12,503 | 12/25/2023 |
2.1.70 | 734 | 12/25/2023 |
2.1.69 | 379 | 12/25/2023 |
2.1.68 | 382 | 12/25/2023 |
2.1.67 | 3,989 | 12/25/2023 |
2.1.66 | 10,287 | 12/24/2023 |
2.1.65 | 6,195 | 12/23/2023 |
2.1.64 | 1,518 | 12/23/2023 |
2.1.63 | 350 | 12/23/2023 |
2.1.62 | 4,464 | 12/23/2023 |
2.1.61 | 379 | 12/23/2023 |
2.1.60 | 342 | 12/23/2023 |
2.1.59 | 1,542 | 12/23/2023 |
2.1.58 | 349 | 12/23/2023 |
2.1.57 | 11,069 | 12/19/2023 |
2.1.56 | 3,685 | 12/18/2023 |
2.1.55 | 10,384 | 12/10/2023 |
2.1.51 | 5,237 | 12/10/2023 |
2.1.50 | 8,939 | 12/9/2023 |
2.1.49 | 391 | 12/9/2023 |
2.1.48 | 458 | 12/9/2023 |
2.1.47 | 403 | 12/9/2023 |
2.1.46 | 400 | 12/9/2023 |
2.1.45 | 427 | 12/9/2023 |
2.1.44 | 6,043 | 12/9/2023 |
2.1.43 | 9,506 | 12/6/2023 |
2.1.42 | 7,474 | 12/4/2023 |
2.1.41 | 5,006 | 12/4/2023 |
2.1.40 | 439 | 12/4/2023 |
2.1.39 | 709 | 12/4/2023 |
2.1.38 | 460 | 12/4/2023 |
2.1.37 | 12,395 | 11/23/2023 |
2.1.36 | 381 | 11/23/2023 |
2.1.35 | 613 | 11/23/2023 |
2.1.34 | 414 | 11/23/2023 |
2.1.33 | 1,666 | 11/23/2023 |
2.1.32 | 2,666 | 11/23/2023 |
2.1.31 | 7,509 | 11/20/2023 |
2.1.30 | 2,972 | 11/20/2023 |
2.1.29 | 5,401 | 11/19/2023 |
2.1.28 | 862 | 11/19/2023 |
2.1.27 | 407 | 11/19/2023 |
2.1.26 | 425 | 11/19/2023 |
2.1.25 | 395 | 11/19/2023 |
2.1.24 | 1,942 | 11/19/2023 |
2.1.23 | 8,082 | 11/18/2023 |
2.1.22 | 439 | 11/18/2023 |
2.1.21 | 2,741 | 11/18/2023 |
2.1.20 | 1,876 | 11/18/2023 |
2.1.19 | 421 | 11/18/2023 |
2.1.18 | 4,715 | 11/17/2023 |
2.1.17 | 1,202 | 11/17/2023 |
2.1.16 | 445 | 11/17/2023 |
2.1.15 | 425 | 11/17/2023 |
2.1.14 | 1,410 | 11/17/2023 |
2.1.13 | 6,373 | 11/17/2023 |
2.1.12 | 1,495 | 11/17/2023 |
2.1.11 | 414 | 11/17/2023 |
2.1.10 | 430 | 11/17/2023 |
2.1.9 | 445 | 11/17/2023 |
2.1.8 | 2,810 | 11/17/2023 |
2.1.7 | 1,339 | 11/16/2023 |
2.1.6 | 382 | 11/16/2023 |
2.1.5 | 692 | 11/16/2023 |
2.1.4 | 420 | 11/16/2023 |
2.0.140 | 4,386 | 11/15/2023 |
2.0.139 | 441 | 11/15/2023 |
2.0.138 | 421 | 11/15/2023 |
2.0.137 | 422 | 11/15/2023 |
2.0.136 | 415 | 11/15/2023 |
2.0.3 | 402 | 11/16/2023 |
2.0.2 | 425 | 11/16/2023 |
2.0.1 | 381 | 11/16/2023 |
1.0.135 | 10,062 | 11/10/2023 |
1.0.134 | 437 | 11/10/2023 |
1.0.133 | 4,954 | 11/9/2023 |
1.0.132 | 393 | 11/9/2023 |
1.0.131 | 439 | 11/9/2023 |
1.0.130 | 1,743 | 11/8/2023 |
1.0.129 | 8,935 | 11/6/2023 |
1.0.128 | 416 | 11/6/2023 |
1.0.127 | 452 | 11/6/2023 |
1.0.126 | 456 | 11/6/2023 |
1.0.125 | 3,315 | 11/3/2023 |
1.0.124 | 5,983 | 11/2/2023 |
1.0.123 | 448 | 11/2/2023 |
1.0.122 | 447 | 11/2/2023 |
1.0.121 | 423 | 11/2/2023 |
1.0.120 | 3,215 | 11/1/2023 |
1.0.119 | 16,195 | 10/18/2023 |
1.0.118 | 489 | 10/18/2023 |
1.0.117 | 474 | 10/18/2023 |
1.0.116 | 462 | 10/18/2023 |
1.0.115 | 3,568 | 10/17/2023 |
1.0.114 | 4,290 | 10/16/2023 |
1.0.113 | 475 | 10/16/2023 |
1.0.112 | 467 | 10/16/2023 |
1.0.111 | 481 | 10/16/2023 |
1.0.110 | 6,475 | 10/13/2023 |
1.0.109 | 501 | 10/13/2023 |
1.0.108 | 11,487 | 9/19/2023 |
1.0.107 | 511 | 9/19/2023 |
1.0.106 | 509 | 9/19/2023 |
1.0.105 | 466 | 9/19/2023 |
1.0.104 | 5,874 | 9/18/2023 |
1.0.103 | 510 | 9/18/2023 |
1.0.102 | 13,753 | 8/30/2023 |
1.0.101 | 566 | 8/30/2023 |
1.0.100 | 509 | 8/30/2023 |
1.0.99 | 528 | 8/30/2023 |
1.0.98 | 540 | 8/30/2023 |
1.0.97 | 10,235 | 8/25/2023 |
1.0.96 | 4,748 | 8/24/2023 |
1.0.95 | 539 | 8/24/2023 |
1.0.94 | 8,991 | 8/18/2023 |
1.0.93 | 557 | 8/18/2023 |
1.0.92 | 4,167 | 8/17/2023 |
1.0.91 | 532 | 8/17/2023 |
1.0.90 | 546 | 8/17/2023 |
1.0.89 | 15,953 | 8/8/2023 |
1.0.88 | 567 | 8/8/2023 |
1.0.87 | 5,153 | 8/7/2023 |
1.0.86 | 577 | 8/7/2023 |
1.0.85 | 565 | 8/7/2023 |
1.0.84 | 19,380 | 7/10/2023 |
1.0.83 | 625 | 7/10/2023 |
1.0.82 | 656 | 7/10/2023 |
1.0.81 | 671 | 7/10/2023 |
1.0.80 | 4,299 | 7/7/2023 |
1.0.79 | 603 | 7/7/2023 |
1.0.78 | 14,391 | 6/29/2023 |
1.0.77 | 4,012 | 6/28/2023 |
1.0.76 | 632 | 6/28/2023 |
1.0.75 | 668 | 6/28/2023 |
1.0.74 | 42,020 | 6/7/2023 |
1.0.73 | 5,640 | 6/7/2023 |
1.0.72 | 670 | 6/7/2023 |
1.0.71 | 662 | 6/7/2023 |
1.0.70 | 6,702 | 6/6/2023 |
1.0.69 | 651 | 6/6/2023 |
1.0.68 | 2,619 | 6/5/2023 |
1.0.67 | 630 | 6/5/2023 |
1.0.66 | 6,357 | 6/2/2023 |
1.0.65 | 661 | 6/2/2023 |
1.0.64 | 660 | 6/2/2023 |
1.0.63 | 25,776 | 5/30/2023 |
1.0.62 | 647 | 5/30/2023 |
1.0.61 | 7,534 | 5/29/2023 |
1.0.60 | 660 | 5/29/2023 |
1.0.59 | 6,159 | 5/26/2023 |
1.0.58 | 11,340 | 5/25/2023 |
1.0.57 | 672 | 5/25/2023 |
1.0.56 | 5,818 | 5/24/2023 |
1.0.55 | 679 | 5/24/2023 |
1.0.54 | 682 | 5/24/2023 |
1.0.53 | 659 | 5/24/2023 |
1.0.52 | 760 | 5/24/2023 |
1.0.51 | 3,828 | 5/23/2023 |
1.0.50 | 671 | 5/23/2023 |
1.0.49 | 657 | 5/23/2023 |
1.0.46 | 12,315 | 5/22/2023 |
1.0.45 | 9,945 | 5/18/2023 |
1.0.44 | 5,923 | 5/17/2023 |
1.0.43 | 654 | 5/17/2023 |
1.0.42 | 637 | 5/17/2023 |
1.0.41 | 641 | 5/17/2023 |
1.0.40 | 15,584 | 4/24/2023 |
1.0.39 | 2,219 | 4/24/2023 |
1.0.38 | 711 | 4/24/2023 |
1.0.37 | 3,674 | 4/21/2023 |
1.0.36 | 664 | 4/21/2023 |
1.0.35 | 665 | 4/21/2023 |
1.0.34 | 4,055 | 4/20/2023 |
1.0.33 | 820 | 4/20/2023 |
1.0.32 | 780 | 4/20/2023 |
1.0.31 | 3,821 | 4/19/2023 |
1.0.30 | 1,702 | 4/18/2023 |
1.0.29 | 679 | 4/18/2023 |
1.0.28 | 1,772 | 4/18/2023 |
1.0.27 | 3,060 | 4/17/2023 |
1.0.26 | 754 | 4/16/2023 |
1.0.25 | 718 | 4/16/2023 |
1.0.24 | 3,171 | 4/14/2023 |
1.0.23 | 2,330 | 4/13/2023 |
1.0.22 | 2,220 | 4/12/2023 |
1.0.21 | 702 | 4/12/2023 |
1.0.20 | 691 | 4/12/2023 |
1.0.19 | 1,560 | 4/11/2023 |
1.0.18 | 746 | 4/11/2023 |
1.0.17 | 2,385 | 4/11/2023 |
1.0.16 | 2,724 | 4/7/2023 |
1.0.15 | 3,422 | 4/3/2023 |
1.0.14 | 731 | 4/3/2023 |
1.0.13 | 718 | 4/3/2023 |
1.0.12 | 697 | 4/3/2023 |
1.0.11 | 1,900 | 4/1/2023 |
1.0.10 | 1,109 | 3/30/2023 |
1.0.9 | 844 | 3/26/2023 |
1.0.7 | 3,739 | 2/27/2023 |
1.0.6 | 741 | 2/26/2023 |
1.0.5 | 750 | 2/22/2023 |
1.0.4 | 924 | 2/22/2023 |
1.0.3 | 770 | 2/22/2023 |
1.0.2 | 1,282 | 2/12/2023 |
1.0.1 | 960 | 2/12/2023 |