Soenneker.Extensions.String 2.1.142

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.142                
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.142                
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.142" />                
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.142                
#r "nuget: Soenneker.Extensions.String, 2.1.142"                
#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.142

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

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 (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.205 8,958 7/24/2024
2.1.204 4,080 7/24/2024
2.1.203 28 7/24/2024
2.1.202 19,238 7/13/2024
2.1.201 57 7/13/2024
2.1.200 12,101 7/10/2024
2.1.199 3,928 7/10/2024
2.1.198 81 7/10/2024
2.1.196 3,148 7/9/2024
2.1.194 2,546 7/9/2024
2.1.193 15,044 7/9/2024
2.1.192 4,282 7/9/2024
2.1.191 437 7/9/2024
2.1.190 58 7/9/2024
2.1.189 7,831 7/9/2024
2.1.188 2,038 7/8/2024
2.1.187 60 7/8/2024
2.1.186 89 7/8/2024
2.1.185 64 7/8/2024
2.1.184 66 7/8/2024
2.1.183 4,425 7/8/2024
2.1.182 62 7/8/2024
2.1.181 65 7/8/2024
2.1.180 393 7/8/2024
2.1.179 18,682 7/7/2024
2.1.178 2,646 7/7/2024
2.1.177 16,059 7/3/2024
2.1.176 27,800 6/14/2024
2.1.174 32,289 5/27/2024
2.1.173 2,619 5/27/2024
2.1.172 68 5/27/2024
2.1.171 14,997 5/25/2024
2.1.170 6,011 5/25/2024
2.1.169 79 5/25/2024
2.1.168 78 5/25/2024
2.1.167 3,350 5/25/2024
2.1.166 72 5/25/2024
2.1.165 72 5/25/2024
2.1.164 71 5/25/2024
2.1.163 3,220 5/25/2024
2.1.162 73 5/25/2024
2.1.161 14,523 5/22/2024
2.1.160 3,778 5/22/2024
2.1.159 1,738 5/22/2024
2.1.158 80 5/22/2024
2.1.157 72 5/22/2024
2.1.156 73 5/22/2024
2.1.155 7,369 5/22/2024
2.1.154 12,600 5/16/2024
2.1.153 34,834 4/28/2024
2.1.152 72 4/28/2024
2.1.151 5,506 4/28/2024
2.1.150 73 4/28/2024
2.1.149 71 4/28/2024
2.1.148 576 4/28/2024
2.1.147 73 4/28/2024
2.1.146 73 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,488 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 84 4/12/2024
2.1.137 2,886 4/12/2024
2.1.136 86 4/12/2024
2.1.135 82 4/12/2024
2.1.134 83 4/12/2024
2.1.133 19,037 4/1/2024
2.1.132 13,523 3/25/2024
2.1.131 15,086 3/18/2024
2.1.130 155 3/18/2024
2.1.129 271 3/18/2024
2.1.128 14,224 3/13/2024
2.1.127 146 3/13/2024
2.1.126 144 3/13/2024
2.1.125 1,501 3/13/2024
2.1.124 134 3/13/2024
2.1.123 133 3/13/2024
2.1.122 28,179 3/8/2024
2.1.121 11,955 3/3/2024
2.1.120 10,189 3/2/2024
2.1.119 1,907 3/1/2024
2.1.117 9,416 2/28/2024
2.1.116 17,671 2/25/2024
2.1.115 179 2/25/2024
2.1.114 14,523 2/21/2024
2.1.113 3,995 2/21/2024
2.1.112 2,165 2/21/2024
2.1.111 1,409 2/21/2024
2.1.110 210 2/21/2024
2.1.109 4,718 2/21/2024
2.1.108 196 2/21/2024
2.1.107 209 2/21/2024
2.1.106 11,875 2/20/2024
2.1.105 1,343 2/20/2024
2.1.104 7,799 2/19/2024
2.1.103 7,885 2/16/2024
2.1.102 5,430 2/16/2024
2.1.101 203 2/16/2024
2.1.100 5,453 2/16/2024
2.1.99 31,660 2/9/2024
2.1.98 27,854 2/7/2024
2.1.97 3,885 2/6/2024
2.1.96 2,273 2/6/2024
2.1.95 346 2/6/2024
2.1.94 224 2/6/2024
2.1.93 10,555 2/4/2024
2.1.92 78,670 1/15/2024
2.1.91 4,363 1/15/2024
2.1.90 334 1/15/2024
2.1.89 2,662 1/15/2024
2.1.88 288 1/15/2024
2.1.87 30,489 1/7/2024
2.1.86 6,058 1/5/2024
2.1.85 3,530 1/5/2024
2.1.84 323 1/5/2024
2.1.83 347 1/5/2024
2.1.82 4,375 1/5/2024
2.1.81 10,455 1/1/2024
2.1.80 401 1/1/2024
2.1.79 6,725 12/28/2023
2.1.78 3,607 12/28/2023
2.1.77 3,412 12/27/2023
2.1.76 367 12/27/2023
2.1.75 373 12/27/2023
2.1.74 4,271 12/27/2023
2.1.73 348 12/27/2023
2.1.72 364 12/27/2023
2.1.71 12,509 12/25/2023
2.1.70 736 12/25/2023
2.1.69 381 12/25/2023
2.1.68 384 12/25/2023
2.1.67 3,991 12/25/2023
2.1.66 10,291 12/24/2023
2.1.65 6,197 12/23/2023
2.1.64 1,523 12/23/2023
2.1.63 352 12/23/2023
2.1.62 4,466 12/23/2023
2.1.61 381 12/23/2023
2.1.60 344 12/23/2023
2.1.59 1,544 12/23/2023
2.1.58 351 12/23/2023
2.1.57 11,083 12/19/2023
2.1.56 3,688 12/18/2023
2.1.55 10,395 12/10/2023
2.1.51 5,243 12/10/2023
2.1.50 8,946 12/9/2023
2.1.49 394 12/9/2023
2.1.48 461 12/9/2023
2.1.47 411 12/9/2023
2.1.46 403 12/9/2023
2.1.45 430 12/9/2023
2.1.44 6,049 12/9/2023
2.1.43 9,513 12/6/2023
2.1.42 7,483 12/4/2023
2.1.41 5,012 12/4/2023
2.1.40 441 12/4/2023
2.1.39 711 12/4/2023
2.1.38 462 12/4/2023
2.1.37 12,417 11/23/2023
2.1.36 383 11/23/2023
2.1.35 615 11/23/2023
2.1.34 416 11/23/2023
2.1.33 1,668 11/23/2023
2.1.32 2,670 11/23/2023
2.1.31 7,511 11/20/2023
2.1.30 2,974 11/20/2023
2.1.29 5,407 11/19/2023
2.1.28 864 11/19/2023
2.1.27 409 11/19/2023
2.1.26 427 11/19/2023
2.1.25 397 11/19/2023
2.1.24 1,944 11/19/2023
2.1.23 8,087 11/18/2023
2.1.22 441 11/18/2023
2.1.21 2,745 11/18/2023
2.1.20 1,878 11/18/2023
2.1.19 423 11/18/2023
2.1.18 4,738 11/17/2023
2.1.17 1,204 11/17/2023
2.1.16 447 11/17/2023
2.1.15 427 11/17/2023
2.1.14 1,412 11/17/2023
2.1.13 6,375 11/17/2023
2.1.12 1,497 11/17/2023
2.1.11 416 11/17/2023
2.1.10 438 11/17/2023
2.1.9 447 11/17/2023
2.1.8 2,812 11/17/2023
2.1.7 1,341 11/16/2023
2.1.6 384 11/16/2023
2.1.5 694 11/16/2023
2.1.4 422 11/16/2023
2.0.140 4,399 11/15/2023
2.0.139 443 11/15/2023
2.0.138 423 11/15/2023
2.0.137 424 11/15/2023
2.0.136 417 11/15/2023
2.0.3 404 11/16/2023
2.0.2 427 11/16/2023
2.0.1 383 11/16/2023
1.0.135 10,066 11/10/2023
1.0.134 439 11/10/2023
1.0.133 4,959 11/9/2023
1.0.132 395 11/9/2023
1.0.131 441 11/9/2023
1.0.130 1,751 11/8/2023
1.0.129 8,937 11/6/2023
1.0.128 418 11/6/2023
1.0.127 454 11/6/2023
1.0.126 458 11/6/2023
1.0.125 3,317 11/3/2023
1.0.124 5,986 11/2/2023
1.0.123 450 11/2/2023
1.0.122 449 11/2/2023
1.0.121 425 11/2/2023
1.0.120 3,217 11/1/2023
1.0.119 16,200 10/18/2023
1.0.118 491 10/18/2023
1.0.117 476 10/18/2023
1.0.116 464 10/18/2023
1.0.115 3,570 10/17/2023
1.0.114 4,292 10/16/2023
1.0.113 477 10/16/2023
1.0.112 469 10/16/2023
1.0.111 483 10/16/2023
1.0.110 6,477 10/13/2023
1.0.109 503 10/13/2023
1.0.108 11,495 9/19/2023
1.0.107 513 9/19/2023
1.0.106 511 9/19/2023
1.0.105 468 9/19/2023
1.0.104 5,879 9/18/2023
1.0.103 513 9/18/2023
1.0.102 13,758 8/30/2023
1.0.101 568 8/30/2023
1.0.100 511 8/30/2023
1.0.99 530 8/30/2023
1.0.98 547 8/30/2023
1.0.97 10,242 8/25/2023
1.0.96 4,750 8/24/2023
1.0.95 541 8/24/2023
1.0.94 8,993 8/18/2023
1.0.93 565 8/18/2023
1.0.92 4,169 8/17/2023
1.0.91 534 8/17/2023
1.0.90 548 8/17/2023
1.0.89 15,965 8/8/2023
1.0.88 569 8/8/2023
1.0.87 5,155 8/7/2023
1.0.86 579 8/7/2023
1.0.85 567 8/7/2023
1.0.84 19,382 7/10/2023
1.0.83 627 7/10/2023
1.0.82 658 7/10/2023
1.0.81 673 7/10/2023
1.0.80 4,306 7/7/2023
1.0.79 605 7/7/2023
1.0.78 14,398 6/29/2023
1.0.77 4,014 6/28/2023
1.0.76 634 6/28/2023
1.0.75 670 6/28/2023
1.0.74 42,032 6/7/2023
1.0.73 5,642 6/7/2023
1.0.72 672 6/7/2023
1.0.71 664 6/7/2023
1.0.70 6,704 6/6/2023
1.0.69 653 6/6/2023
1.0.68 2,621 6/5/2023
1.0.67 632 6/5/2023
1.0.66 6,360 6/2/2023
1.0.65 663 6/2/2023
1.0.64 662 6/2/2023
1.0.63 25,788 5/30/2023
1.0.62 649 5/30/2023
1.0.61 7,541 5/29/2023
1.0.60 662 5/29/2023
1.0.59 6,161 5/26/2023
1.0.58 11,348 5/25/2023
1.0.57 674 5/25/2023
1.0.56 5,820 5/24/2023
1.0.55 687 5/24/2023
1.0.54 684 5/24/2023
1.0.53 661 5/24/2023
1.0.52 762 5/24/2023
1.0.51 3,830 5/23/2023
1.0.50 673 5/23/2023
1.0.49 661 5/23/2023
1.0.46 12,319 5/22/2023
1.0.45 9,948 5/18/2023
1.0.44 5,925 5/17/2023
1.0.43 656 5/17/2023
1.0.42 639 5/17/2023
1.0.41 643 5/17/2023
1.0.40 15,586 4/24/2023
1.0.39 2,221 4/24/2023
1.0.38 713 4/24/2023
1.0.37 3,679 4/21/2023
1.0.36 666 4/21/2023
1.0.35 667 4/21/2023
1.0.34 4,057 4/20/2023
1.0.33 824 4/20/2023
1.0.32 782 4/20/2023
1.0.31 3,823 4/19/2023
1.0.30 1,704 4/18/2023
1.0.29 681 4/18/2023
1.0.28 1,774 4/18/2023
1.0.27 3,064 4/17/2023
1.0.26 756 4/16/2023
1.0.25 720 4/16/2023
1.0.24 3,175 4/14/2023
1.0.23 2,332 4/13/2023
1.0.22 2,227 4/12/2023
1.0.21 704 4/12/2023
1.0.20 693 4/12/2023
1.0.19 1,562 4/11/2023
1.0.18 748 4/11/2023
1.0.17 2,394 4/11/2023
1.0.16 2,729 4/7/2023
1.0.15 3,424 4/3/2023
1.0.14 733 4/3/2023
1.0.13 720 4/3/2023
1.0.12 699 4/3/2023
1.0.11 1,902 4/1/2023
1.0.10 1,111 3/30/2023
1.0.9 846 3/26/2023
1.0.7 3,741 2/27/2023
1.0.6 744 2/26/2023
1.0.5 752 2/22/2023
1.0.4 926 2/22/2023
1.0.3 772 2/22/2023
1.0.2 1,284 2/12/2023
1.0.1 967 2/12/2023