Soenneker.Extensions.String 2.1.238

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.String --version 2.1.238                
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.238                
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.238" />                
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.238                
#r "nuget: Soenneker.Extensions.String, 2.1.238"                
#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.238

// Install Soenneker.Extensions.String as a Cake Tool
#tool nuget:?package=Soenneker.Extensions.String&version=2.1.238                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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.

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.247 0 9/27/2024
2.1.246 0 9/27/2024
2.1.245 0 9/27/2024
2.1.244 0 9/27/2024
2.1.243 26,447 9/23/2024
2.1.242 680 9/23/2024
2.1.241 3,530 9/23/2024
2.1.240 69 9/23/2024
2.1.239 1,142 9/23/2024
2.1.238 74 9/23/2024
2.1.237 6,679 9/22/2024
2.1.236 25,734 9/17/2024
2.1.235 184 9/17/2024
2.1.234 69 9/17/2024
2.1.233 179 9/17/2024
2.1.232 74 9/17/2024
2.1.231 3,843 9/17/2024
2.1.230 88 9/17/2024
2.1.229 45,148 9/11/2024
2.1.228 15,816 9/11/2024
2.1.227 21,713 9/9/2024
2.1.226 9,172 9/9/2024
2.1.225 5,595 9/9/2024
2.1.224 7,962 9/9/2024
2.1.223 8,399 9/9/2024
2.1.222 80 9/9/2024
2.1.221 78 9/9/2024
2.1.220 33,882 9/5/2024
2.1.219 6,705 9/5/2024
2.1.218 82 9/5/2024
2.1.217 80 9/5/2024
2.1.216 1,094 9/5/2024
2.1.215 83 9/5/2024
2.1.214 3,614 9/5/2024
2.1.213 19,483 9/4/2024
2.1.212 45,568 8/20/2024
2.1.211 5,201 8/20/2024
2.1.210 95 8/20/2024
2.1.209 99 8/20/2024
2.1.208 4,625 8/20/2024
2.1.207 102 8/20/2024
2.1.206 92 8/20/2024
2.1.205 66,606 7/24/2024
2.1.204 5,375 7/24/2024
2.1.203 65 7/24/2024
2.1.202 24,427 7/13/2024
2.1.201 96 7/13/2024
2.1.200 14,574 7/10/2024
2.1.199 4,405 7/10/2024
2.1.198 111 7/10/2024
2.1.196 4,028 7/9/2024
2.1.194 3,109 7/9/2024
2.1.193 18,094 7/9/2024
2.1.192 5,426 7/9/2024
2.1.191 567 7/9/2024
2.1.190 90 7/9/2024
2.1.189 8,836 7/9/2024
2.1.188 2,552 7/8/2024
2.1.187 91 7/8/2024
2.1.186 112 7/8/2024
2.1.185 82 7/8/2024
2.1.184 85 7/8/2024
2.1.183 5,101 7/8/2024
2.1.182 81 7/8/2024
2.1.181 83 7/8/2024
2.1.180 494 7/8/2024
2.1.179 22,704 7/7/2024
2.1.178 3,106 7/7/2024
2.1.177 20,090 7/3/2024
2.1.176 33,944 6/14/2024
2.1.174 39,662 5/27/2024
2.1.173 2,951 5/27/2024
2.1.172 83 5/27/2024
2.1.171 18,400 5/25/2024
2.1.170 6,974 5/25/2024
2.1.169 96 5/25/2024
2.1.168 95 5/25/2024
2.1.167 4,110 5/25/2024
2.1.166 90 5/25/2024
2.1.165 93 5/25/2024
2.1.164 89 5/25/2024
2.1.163 3,747 5/25/2024
2.1.162 90 5/25/2024
2.1.161 17,580 5/22/2024
2.1.160 4,463 5/22/2024
2.1.159 2,174 5/22/2024
2.1.158 99 5/22/2024
2.1.157 89 5/22/2024
2.1.156 107 5/22/2024
2.1.155 9,013 5/22/2024
2.1.154 15,123 5/16/2024
2.1.153 42,833 4/28/2024
2.1.152 88 4/28/2024
2.1.151 6,643 4/28/2024
2.1.150 89 4/28/2024
2.1.149 99 4/28/2024
2.1.148 652 4/28/2024
2.1.147 99 4/28/2024
2.1.146 108 4/28/2024
2.1.145 4,976 4/27/2024
2.1.144 110 4/27/2024
2.1.143 94 4/27/2024
2.1.142 34,677 4/12/2024
2.1.141 118 4/12/2024
2.1.140 4,451 4/12/2024
2.1.139 124 4/12/2024
2.1.138 101 4/12/2024
2.1.137 3,059 4/12/2024
2.1.136 109 4/12/2024
2.1.135 99 4/12/2024
2.1.134 99 4/12/2024
2.1.133 23,204 4/1/2024
2.1.132 16,968 3/25/2024
2.1.131 18,561 3/18/2024
2.1.130 176 3/18/2024
2.1.129 317 3/18/2024
2.1.128 17,547 3/13/2024
2.1.127 163 3/13/2024
2.1.126 161 3/13/2024
2.1.125 1,613 3/13/2024
2.1.124 153 3/13/2024
2.1.123 164 3/13/2024
2.1.122 34,999 3/8/2024
2.1.121 14,823 3/3/2024
2.1.120 12,342 3/2/2024
2.1.119 2,036 3/1/2024
2.1.117 11,303 2/28/2024
2.1.116 21,521 2/25/2024
2.1.115 202 2/25/2024
2.1.114 17,450 2/21/2024
2.1.113 4,528 2/21/2024
2.1.112 2,660 2/21/2024
2.1.111 1,756 2/21/2024
2.1.110 225 2/21/2024
2.1.109 5,672 2/21/2024
2.1.108 218 2/21/2024
2.1.107 233 2/21/2024
2.1.106 14,131 2/20/2024
2.1.105 1,556 2/20/2024
2.1.104 9,471 2/19/2024
2.1.103 9,595 2/16/2024
2.1.102 6,542 2/16/2024
2.1.101 223 2/16/2024
2.1.100 6,251 2/16/2024
2.1.99 37,782 2/9/2024
2.1.98 33,653 2/7/2024
2.1.97 4,350 2/6/2024
2.1.96 2,630 2/6/2024
2.1.95 412 2/6/2024
2.1.94 244 2/6/2024
2.1.93 12,631 2/4/2024
2.1.92 93,069 1/15/2024
2.1.91 5,128 1/15/2024
2.1.90 357 1/15/2024
2.1.89 2,996 1/15/2024
2.1.88 307 1/15/2024
2.1.87 35,444 1/7/2024
2.1.86 7,041 1/5/2024
2.1.85 4,184 1/5/2024
2.1.84 341 1/5/2024
2.1.83 365 1/5/2024
2.1.82 4,885 1/5/2024
2.1.81 12,066 1/1/2024
2.1.80 419 1/1/2024
2.1.79 7,879 12/28/2023
2.1.78 4,078 12/28/2023
2.1.77 3,910 12/27/2023
2.1.76 394 12/27/2023
2.1.75 395 12/27/2023
2.1.74 4,785 12/27/2023
2.1.73 367 12/27/2023
2.1.72 382 12/27/2023
2.1.71 14,796 12/25/2023
2.1.70 844 12/25/2023
2.1.69 405 12/25/2023
2.1.68 404 12/25/2023
2.1.67 4,562 12/25/2023
2.1.66 12,073 12/24/2023
2.1.65 7,321 12/23/2023
2.1.64 1,903 12/23/2023
2.1.63 367 12/23/2023
2.1.62 5,267 12/23/2023
2.1.61 397 12/23/2023
2.1.60 362 12/23/2023
2.1.59 1,745 12/23/2023
2.1.58 371 12/23/2023
2.1.57 13,078 12/19/2023
2.1.56 4,371 12/18/2023
2.1.55 12,249 12/10/2023
2.1.51 6,072 12/10/2023
2.1.50 10,458 12/9/2023
2.1.49 414 12/9/2023
2.1.48 498 12/9/2023
2.1.47 430 12/9/2023
2.1.46 426 12/9/2023
2.1.45 448 12/9/2023
2.1.44 7,081 12/9/2023
2.1.43 11,059 12/6/2023
2.1.42 8,919 12/4/2023
2.1.41 5,730 12/4/2023
2.1.40 458 12/4/2023
2.1.39 850 12/4/2023
2.1.38 497 12/4/2023
2.1.37 14,940 11/23/2023
2.1.36 416 11/23/2023
2.1.35 770 11/23/2023
2.1.34 449 11/23/2023
2.1.33 1,934 11/23/2023
2.1.32 3,101 11/23/2023
2.1.31 9,064 11/20/2023
2.1.30 3,649 11/20/2023
2.1.29 6,457 11/19/2023
2.1.28 1,083 11/19/2023
2.1.27 433 11/19/2023
2.1.26 442 11/19/2023
2.1.25 417 11/19/2023
2.1.24 2,199 11/19/2023
2.1.23 9,499 11/18/2023
2.1.22 464 11/18/2023
2.1.21 3,191 11/18/2023
2.1.20 2,111 11/18/2023
2.1.19 441 11/18/2023
2.1.18 5,528 11/17/2023
2.1.17 1,395 11/17/2023
2.1.16 468 11/17/2023
2.1.15 451 11/17/2023
2.1.14 1,779 11/17/2023
2.1.13 7,542 11/17/2023
2.1.12 1,888 11/17/2023
2.1.11 444 11/17/2023
2.1.10 444 11/17/2023
2.1.9 488 11/17/2023
2.1.8 3,444 11/17/2023
2.1.7 1,549 11/16/2023
2.1.6 404 11/16/2023
2.1.5 856 11/16/2023
2.1.4 428 11/16/2023
2.0.140 5,235 11/15/2023
2.0.139 464 11/15/2023
2.0.138 432 11/15/2023
2.0.137 444 11/15/2023
2.0.136 440 11/15/2023
2.0.3 425 11/16/2023
2.0.2 447 11/16/2023
2.0.1 402 11/16/2023
1.0.135 11,733 11/10/2023
1.0.134 456 11/10/2023
1.0.133 5,609 11/9/2023
1.0.132 418 11/9/2023
1.0.131 450 11/9/2023
1.0.130 1,990 11/8/2023
1.0.129 10,089 11/6/2023
1.0.128 426 11/6/2023
1.0.127 474 11/6/2023
1.0.126 477 11/6/2023
1.0.125 3,732 11/3/2023
1.0.124 6,858 11/2/2023
1.0.123 486 11/2/2023
1.0.122 472 11/2/2023
1.0.121 445 11/2/2023
1.0.120 3,596 11/1/2023
1.0.119 18,847 10/18/2023
1.0.118 509 10/18/2023
1.0.117 496 10/18/2023
1.0.116 486 10/18/2023
1.0.115 4,038 10/17/2023
1.0.114 4,773 10/16/2023
1.0.113 497 10/16/2023
1.0.112 490 10/16/2023
1.0.111 523 10/16/2023
1.0.110 7,159 10/13/2023
1.0.109 542 10/13/2023
1.0.108 13,182 9/19/2023
1.0.107 531 9/19/2023
1.0.106 531 9/19/2023
1.0.105 489 9/19/2023
1.0.104 6,447 9/18/2023
1.0.103 531 9/18/2023
1.0.102 15,608 8/30/2023
1.0.101 588 8/30/2023
1.0.100 549 8/30/2023
1.0.99 551 8/30/2023
1.0.98 571 8/30/2023
1.0.97 11,493 8/25/2023
1.0.96 5,287 8/24/2023
1.0.95 561 8/24/2023
1.0.94 10,270 8/18/2023
1.0.93 569 8/18/2023
1.0.92 4,738 8/17/2023
1.0.91 555 8/17/2023
1.0.90 568 8/17/2023
1.0.89 17,744 8/8/2023
1.0.88 571 8/8/2023
1.0.87 5,772 8/7/2023
1.0.86 600 8/7/2023
1.0.85 586 8/7/2023
1.0.84 21,470 7/10/2023
1.0.83 648 7/10/2023
1.0.82 678 7/10/2023
1.0.81 692 7/10/2023
1.0.80 4,855 7/7/2023
1.0.79 623 7/7/2023
1.0.78 15,985 6/29/2023
1.0.77 4,428 6/28/2023
1.0.76 650 6/28/2023
1.0.75 687 6/28/2023
1.0.74 46,092 6/7/2023
1.0.73 5,998 6/7/2023
1.0.72 690 6/7/2023
1.0.71 683 6/7/2023
1.0.70 7,198 6/6/2023
1.0.69 674 6/6/2023
1.0.68 2,784 6/5/2023
1.0.67 652 6/5/2023
1.0.66 6,930 6/2/2023
1.0.65 687 6/2/2023
1.0.64 685 6/2/2023
1.0.63 27,898 5/30/2023
1.0.62 673 5/30/2023
1.0.61 8,074 5/29/2023
1.0.60 686 5/29/2023
1.0.59 6,521 5/26/2023
1.0.58 12,126 5/25/2023
1.0.57 693 5/25/2023
1.0.56 6,210 5/24/2023
1.0.55 708 5/24/2023
1.0.54 705 5/24/2023
1.0.53 683 5/24/2023
1.0.52 786 5/24/2023
1.0.51 4,084 5/23/2023
1.0.50 689 5/23/2023
1.0.49 680 5/23/2023
1.0.46 13,106 5/22/2023
1.0.45 10,665 5/18/2023
1.0.44 6,342 5/17/2023
1.0.43 672 5/17/2023
1.0.42 661 5/17/2023
1.0.41 659 5/17/2023
1.0.40 16,772 4/24/2023
1.0.39 2,345 4/24/2023
1.0.38 734 4/24/2023
1.0.37 3,930 4/21/2023
1.0.36 686 4/21/2023
1.0.35 689 4/21/2023
1.0.34 4,337 4/20/2023
1.0.33 865 4/20/2023
1.0.32 823 4/20/2023
1.0.31 4,057 4/19/2023
1.0.30 1,811 4/18/2023
1.0.29 704 4/18/2023
1.0.28 1,863 4/18/2023
1.0.27 3,260 4/17/2023
1.0.26 785 4/16/2023
1.0.25 738 4/16/2023
1.0.24 3,390 4/14/2023
1.0.23 2,487 4/13/2023
1.0.22 2,375 4/12/2023
1.0.21 723 4/12/2023
1.0.20 720 4/12/2023
1.0.19 1,676 4/11/2023
1.0.18 789 4/11/2023
1.0.17 2,535 4/11/2023
1.0.16 2,897 4/7/2023
1.0.15 3,679 4/3/2023
1.0.14 755 4/3/2023
1.0.13 742 4/3/2023
1.0.12 716 4/3/2023
1.0.11 2,022 4/1/2023
1.0.10 1,134 3/30/2023
1.0.9 864 3/26/2023
1.0.7 3,906 2/27/2023
1.0.6 767 2/26/2023
1.0.5 776 2/22/2023
1.0.4 969 2/22/2023
1.0.3 796 2/22/2023
1.0.2 1,346 2/12/2023
1.0.1 999 2/12/2023