Soenneker.Extensions.String 2.1.242

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

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

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.243 23,767 9/23/2024
2.1.242 652 9/23/2024
2.1.241 3,488 9/23/2024
2.1.240 69 9/23/2024
2.1.239 1,131 9/23/2024
2.1.238 74 9/23/2024
2.1.237 6,540 9/22/2024
2.1.236 25,266 9/17/2024
2.1.235 184 9/17/2024
2.1.234 69 9/17/2024
2.1.233 170 9/17/2024
2.1.232 74 9/17/2024
2.1.231 3,803 9/17/2024
2.1.230 88 9/17/2024
2.1.229 44,269 9/11/2024
2.1.228 15,589 9/11/2024
2.1.227 21,361 9/9/2024
2.1.226 9,075 9/9/2024
2.1.225 5,470 9/9/2024
2.1.224 7,871 9/9/2024
2.1.223 8,264 9/9/2024
2.1.222 80 9/9/2024
2.1.221 78 9/9/2024
2.1.220 33,249 9/5/2024
2.1.219 6,577 9/5/2024
2.1.218 82 9/5/2024
2.1.217 80 9/5/2024
2.1.216 1,053 9/5/2024
2.1.215 83 9/5/2024
2.1.214 3,538 9/5/2024
2.1.213 19,172 9/4/2024
2.1.212 44,717 8/20/2024
2.1.211 5,148 8/20/2024
2.1.210 95 8/20/2024
2.1.209 99 8/20/2024
2.1.208 4,536 8/20/2024
2.1.207 102 8/20/2024
2.1.206 92 8/20/2024
2.1.205 65,199 7/24/2024
2.1.204 5,241 7/24/2024
2.1.203 65 7/24/2024
2.1.202 23,895 7/13/2024
2.1.201 96 7/13/2024
2.1.200 14,305 7/10/2024
2.1.199 4,372 7/10/2024
2.1.198 111 7/10/2024
2.1.196 3,941 7/9/2024
2.1.194 3,049 7/9/2024
2.1.193 17,726 7/9/2024
2.1.192 5,272 7/9/2024
2.1.191 531 7/9/2024
2.1.190 90 7/9/2024
2.1.189 8,757 7/9/2024
2.1.188 2,491 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,034 7/8/2024
2.1.182 81 7/8/2024
2.1.181 83 7/8/2024
2.1.180 488 7/8/2024
2.1.179 22,224 7/7/2024
2.1.178 3,042 7/7/2024
2.1.177 19,650 7/3/2024
2.1.176 33,283 6/14/2024
2.1.174 38,934 5/27/2024
2.1.173 2,897 5/27/2024
2.1.172 83 5/27/2024
2.1.171 18,103 5/25/2024
2.1.170 6,859 5/25/2024
2.1.169 96 5/25/2024
2.1.168 95 5/25/2024
2.1.167 4,048 5/25/2024
2.1.166 89 5/25/2024
2.1.165 93 5/25/2024
2.1.164 88 5/25/2024
2.1.163 3,727 5/25/2024
2.1.162 90 5/25/2024
2.1.161 17,304 5/22/2024
2.1.160 4,362 5/22/2024
2.1.159 2,146 5/22/2024
2.1.158 99 5/22/2024
2.1.157 88 5/22/2024
2.1.156 107 5/22/2024
2.1.155 8,817 5/22/2024
2.1.154 14,863 5/16/2024
2.1.153 42,123 4/28/2024
2.1.152 88 4/28/2024
2.1.151 6,445 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 107 4/28/2024
2.1.145 4,936 4/27/2024
2.1.144 110 4/27/2024
2.1.143 94 4/27/2024
2.1.142 34,108 4/12/2024
2.1.141 118 4/12/2024
2.1.140 4,364 4/12/2024
2.1.139 124 4/12/2024
2.1.138 101 4/12/2024
2.1.137 3,057 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 22,825 4/1/2024
2.1.132 16,633 3/25/2024
2.1.131 18,241 3/18/2024
2.1.130 176 3/18/2024
2.1.129 317 3/18/2024
2.1.128 17,237 3/13/2024
2.1.127 163 3/13/2024
2.1.126 160 3/13/2024
2.1.125 1,609 3/13/2024
2.1.124 153 3/13/2024
2.1.123 164 3/13/2024
2.1.122 34,380 3/8/2024
2.1.121 14,532 3/3/2024
2.1.120 12,136 3/2/2024
2.1.119 2,030 3/1/2024
2.1.117 11,145 2/28/2024
2.1.116 21,015 2/25/2024
2.1.115 202 2/25/2024
2.1.114 17,119 2/21/2024
2.1.113 4,480 2/21/2024
2.1.112 2,594 2/21/2024
2.1.111 1,691 2/21/2024
2.1.110 225 2/21/2024
2.1.109 5,561 2/21/2024
2.1.108 218 2/21/2024
2.1.107 233 2/21/2024
2.1.106 13,906 2/20/2024
2.1.105 1,541 2/20/2024
2.1.104 9,299 2/19/2024
2.1.103 9,432 2/16/2024
2.1.102 6,440 2/16/2024
2.1.101 223 2/16/2024
2.1.100 6,179 2/16/2024
2.1.99 37,090 2/9/2024
2.1.98 33,184 2/7/2024
2.1.97 4,303 2/6/2024
2.1.96 2,593 2/6/2024
2.1.95 412 2/6/2024
2.1.94 244 2/6/2024
2.1.93 12,411 2/4/2024
2.1.92 91,807 1/15/2024
2.1.91 5,050 1/15/2024
2.1.90 356 1/15/2024
2.1.89 2,965 1/15/2024
2.1.88 307 1/15/2024
2.1.87 34,941 1/7/2024
2.1.86 6,944 1/5/2024
2.1.85 4,130 1/5/2024
2.1.84 341 1/5/2024
2.1.83 365 1/5/2024
2.1.82 4,830 1/5/2024
2.1.81 11,858 1/1/2024
2.1.80 419 1/1/2024
2.1.79 7,783 12/28/2023
2.1.78 4,027 12/28/2023
2.1.77 3,873 12/27/2023
2.1.76 394 12/27/2023
2.1.75 394 12/27/2023
2.1.74 4,735 12/27/2023
2.1.73 367 12/27/2023
2.1.72 382 12/27/2023
2.1.71 14,576 12/25/2023
2.1.70 832 12/25/2023
2.1.69 405 12/25/2023
2.1.68 404 12/25/2023
2.1.67 4,496 12/25/2023
2.1.66 11,952 12/24/2023
2.1.65 7,242 12/23/2023
2.1.64 1,886 12/23/2023
2.1.63 366 12/23/2023
2.1.62 5,224 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 12,951 12/19/2023
2.1.56 4,318 12/18/2023
2.1.55 12,117 12/10/2023
2.1.51 6,008 12/10/2023
2.1.50 10,333 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,017 12/9/2023
2.1.43 10,956 12/6/2023
2.1.42 8,854 12/4/2023
2.1.41 5,682 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,762 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,914 11/23/2023
2.1.32 3,078 11/23/2023
2.1.31 8,945 11/20/2023
2.1.30 3,607 11/20/2023
2.1.29 6,376 11/19/2023
2.1.28 1,080 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,190 11/19/2023
2.1.23 9,389 11/18/2023
2.1.22 464 11/18/2023
2.1.21 3,160 11/18/2023
2.1.20 2,091 11/18/2023
2.1.19 441 11/18/2023
2.1.18 5,482 11/17/2023
2.1.17 1,380 11/17/2023
2.1.16 468 11/17/2023
2.1.15 451 11/17/2023
2.1.14 1,761 11/17/2023
2.1.13 7,446 11/17/2023
2.1.12 1,875 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,418 11/17/2023
2.1.7 1,536 11/16/2023
2.1.6 404 11/16/2023
2.1.5 848 11/16/2023
2.1.4 427 11/16/2023
2.0.140 5,208 11/15/2023
2.0.139 464 11/15/2023
2.0.138 431 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,639 11/10/2023
1.0.134 456 11/10/2023
1.0.133 5,539 11/9/2023
1.0.132 418 11/9/2023
1.0.131 450 11/9/2023
1.0.130 1,934 11/8/2023
1.0.129 9,970 11/6/2023
1.0.128 426 11/6/2023
1.0.127 473 11/6/2023
1.0.126 477 11/6/2023
1.0.125 3,716 11/3/2023
1.0.124 6,776 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,582 11/1/2023
1.0.119 18,659 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,019 10/17/2023
1.0.114 4,724 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,095 10/13/2023
1.0.109 542 10/13/2023
1.0.108 13,060 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,404 9/18/2023
1.0.103 531 9/18/2023
1.0.102 15,483 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,414 8/25/2023
1.0.96 5,235 8/24/2023
1.0.95 561 8/24/2023
1.0.94 10,171 8/18/2023
1.0.93 569 8/18/2023
1.0.92 4,725 8/17/2023
1.0.91 555 8/17/2023
1.0.90 568 8/17/2023
1.0.89 17,601 8/8/2023
1.0.88 571 8/8/2023
1.0.87 5,719 8/7/2023
1.0.86 600 8/7/2023
1.0.85 586 8/7/2023
1.0.84 21,289 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,828 7/7/2023
1.0.79 623 7/7/2023
1.0.78 15,843 6/29/2023
1.0.77 4,409 6/28/2023
1.0.76 650 6/28/2023
1.0.75 687 6/28/2023
1.0.74 45,787 6/7/2023
1.0.73 5,967 6/7/2023
1.0.72 690 6/7/2023
1.0.71 682 6/7/2023
1.0.70 7,160 6/6/2023
1.0.69 674 6/6/2023
1.0.68 2,780 6/5/2023
1.0.67 651 6/5/2023
1.0.66 6,868 6/2/2023
1.0.65 687 6/2/2023
1.0.64 685 6/2/2023
1.0.63 27,741 5/30/2023
1.0.62 673 5/30/2023
1.0.61 8,021 5/29/2023
1.0.60 686 5/29/2023
1.0.59 6,489 5/26/2023
1.0.58 12,004 5/25/2023
1.0.57 693 5/25/2023
1.0.56 6,166 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,050 5/23/2023
1.0.50 688 5/23/2023
1.0.49 680 5/23/2023
1.0.46 13,038 5/22/2023
1.0.45 10,598 5/18/2023
1.0.44 6,273 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,634 4/24/2023
1.0.39 2,341 4/24/2023
1.0.38 734 4/24/2023
1.0.37 3,918 4/21/2023
1.0.36 686 4/21/2023
1.0.35 689 4/21/2023
1.0.34 4,305 4/20/2023
1.0.33 865 4/20/2023
1.0.32 823 4/20/2023
1.0.31 4,031 4/19/2023
1.0.30 1,800 4/18/2023
1.0.29 704 4/18/2023
1.0.28 1,862 4/18/2023
1.0.27 3,248 4/17/2023
1.0.26 785 4/16/2023
1.0.25 738 4/16/2023
1.0.24 3,378 4/14/2023
1.0.23 2,483 4/13/2023
1.0.22 2,361 4/12/2023
1.0.21 723 4/12/2023
1.0.20 720 4/12/2023
1.0.19 1,656 4/11/2023
1.0.18 789 4/11/2023
1.0.17 2,527 4/11/2023
1.0.16 2,889 4/7/2023
1.0.15 3,663 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