Soenneker.Extensions.String 3.0.281

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 3.0.281                
NuGet\Install-Package Soenneker.Extensions.String -Version 3.0.281                
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="3.0.281" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Extensions.String --version 3.0.281                
#r "nuget: Soenneker.Extensions.String, 3.0.281"                
#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=3.0.281

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

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 net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (22)

Showing the top 5 NuGet packages that depend on Soenneker.Extensions.String:

Package Downloads
Soenneker.Extensions.Configuration

A collection of helpful IConfiguration extension methods

Soenneker.Utils.MemoryStream

An easy modern MemoryStream utility

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.String

A utility library for useful String operations

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.283 0 12/4/2024
3.0.282 0 12/4/2024
3.0.281 2,494 12/3/2024
3.0.280 50 12/3/2024
3.0.279 4,214 12/3/2024
3.0.278 2,475 12/2/2024
3.0.277 43 12/2/2024
3.0.276 2,581 12/2/2024
3.0.275 10,758 12/1/2024
3.0.274 4,035 12/1/2024
3.0.273 65 12/1/2024
3.0.272 73 12/1/2024
3.0.271 33,800 11/19/2024
3.0.270 70 11/19/2024
3.0.269 5,336 11/19/2024
3.0.268 77 11/19/2024
3.0.267 74 11/19/2024
3.0.266 14,075 11/19/2024
3.0.265 3,643 11/19/2024
3.0.264 27,844 11/14/2024
3.0.263 85 11/14/2024
3.0.262 2,931 11/14/2024
3.0.261 76 11/14/2024
3.0.260 76 11/14/2024
3.0.259 1,730 11/13/2024
3.0.258 82 11/13/2024
2.1.257 48,411 11/8/2024
2.1.256 14,235 11/8/2024
2.1.255 75 11/8/2024
2.1.254 70 11/8/2024
2.1.253 48,127 10/28/2024
2.1.252 111,104 10/1/2024
2.1.251 16,851 9/30/2024
2.1.250 29,630 9/27/2024
2.1.249 95 9/27/2024
2.1.248 84 9/27/2024
2.1.247 2,786 9/27/2024
2.1.246 80 9/27/2024
2.1.245 80 9/27/2024
2.1.244 82 9/27/2024
2.1.243 53,604 9/23/2024
2.1.242 760 9/23/2024
2.1.241 3,722 9/23/2024
2.1.240 87 9/23/2024
2.1.239 1,268 9/23/2024
2.1.238 92 9/23/2024
2.1.237 7,317 9/22/2024
2.1.236 28,218 9/17/2024
2.1.235 206 9/17/2024
2.1.234 93 9/17/2024
2.1.233 195 9/17/2024
2.1.232 91 9/17/2024
2.1.231 4,170 9/17/2024
2.1.230 115 9/17/2024
2.1.229 49,761 9/11/2024
2.1.228 17,039 9/11/2024
2.1.227 23,449 9/9/2024
2.1.226 9,644 9/9/2024
2.1.225 5,902 9/9/2024
2.1.224 8,314 9/9/2024
2.1.223 8,951 9/9/2024
2.1.222 94 9/9/2024
2.1.221 93 9/9/2024
2.1.220 36,398 9/5/2024
2.1.219 7,163 9/5/2024
2.1.218 98 9/5/2024
2.1.217 112 9/5/2024
2.1.216 1,179 9/5/2024
2.1.215 98 9/5/2024
2.1.214 3,890 9/5/2024
2.1.213 20,803 9/4/2024
2.1.212 49,559 8/20/2024
2.1.211 5,621 8/20/2024
2.1.210 107 8/20/2024
2.1.209 110 8/20/2024
2.1.208 5,000 8/20/2024
2.1.207 114 8/20/2024
2.1.206 103 8/20/2024
2.1.205 72,675 7/24/2024
2.1.204 5,773 7/24/2024
2.1.203 75 7/24/2024
2.1.202 26,799 7/13/2024
2.1.201 105 7/13/2024
2.1.200 15,649 7/10/2024
2.1.199 4,614 7/10/2024
2.1.198 119 7/10/2024
2.1.196 4,265 7/9/2024
2.1.194 3,324 7/9/2024
2.1.193 19,475 7/9/2024
2.1.192 5,900 7/9/2024
2.1.191 642 7/9/2024
2.1.190 96 7/9/2024
2.1.189 9,188 7/9/2024
2.1.188 2,795 7/8/2024
2.1.187 97 7/8/2024
2.1.186 119 7/8/2024
2.1.185 88 7/8/2024
2.1.184 92 7/8/2024
2.1.183 5,361 7/8/2024
2.1.182 89 7/8/2024
2.1.181 90 7/8/2024
2.1.180 533 7/8/2024
2.1.179 24,749 7/7/2024
2.1.178 3,219 7/7/2024
2.1.177 21,992 7/3/2024
2.1.176 37,007 6/14/2024
2.1.174 43,168 5/27/2024
2.1.173 3,079 5/27/2024
2.1.172 91 5/27/2024
2.1.171 20,170 5/25/2024
2.1.170 7,421 5/25/2024
2.1.169 104 5/25/2024
2.1.168 102 5/25/2024
2.1.167 4,382 5/25/2024
2.1.166 97 5/25/2024
2.1.165 101 5/25/2024
2.1.164 98 5/25/2024
2.1.163 4,078 5/25/2024
2.1.162 97 5/25/2024
2.1.161 18,905 5/22/2024
2.1.160 4,759 5/22/2024
2.1.159 2,380 5/22/2024
2.1.158 106 5/22/2024
2.1.157 106 5/22/2024
2.1.156 113 5/22/2024
2.1.155 9,778 5/22/2024
2.1.154 16,298 5/16/2024
2.1.153 47,076 4/28/2024
2.1.152 94 4/28/2024
2.1.151 7,268 4/28/2024
2.1.150 95 4/28/2024
2.1.149 107 4/28/2024
2.1.148 671 4/28/2024
2.1.147 108 4/28/2024
2.1.146 116 4/28/2024
2.1.145 5,198 4/27/2024
2.1.144 136 4/27/2024
2.1.143 101 4/27/2024
2.1.142 37,881 4/12/2024
2.1.141 124 4/12/2024
2.1.140 4,785 4/12/2024
2.1.139 130 4/12/2024
2.1.138 108 4/12/2024
2.1.137 3,126 4/12/2024
2.1.136 122 4/12/2024
2.1.135 119 4/12/2024
2.1.134 105 4/12/2024
2.1.133 25,547 4/1/2024
2.1.132 18,487 3/25/2024
2.1.131 20,083 3/18/2024
2.1.130 182 3/18/2024
2.1.129 345 3/18/2024
2.1.128 18,835 3/13/2024
2.1.127 171 3/13/2024
2.1.126 169 3/13/2024
2.1.125 1,651 3/13/2024
2.1.124 165 3/13/2024
2.1.123 170 3/13/2024
2.1.122 37,749 3/8/2024
2.1.121 15,854 3/3/2024
2.1.120 13,242 3/2/2024
2.1.119 2,052 3/1/2024
2.1.117 12,045 2/28/2024
2.1.116 22,883 2/25/2024
2.1.115 212 2/25/2024
2.1.114 18,486 2/21/2024
2.1.113 4,685 2/21/2024
2.1.112 2,798 2/21/2024
2.1.111 1,854 2/21/2024
2.1.110 233 2/21/2024
2.1.109 5,969 2/21/2024
2.1.108 226 2/21/2024
2.1.107 241 2/21/2024
2.1.106 14,918 2/20/2024
2.1.105 1,625 2/20/2024
2.1.104 9,957 2/19/2024
2.1.103 10,183 2/16/2024
2.1.102 6,895 2/16/2024
2.1.101 232 2/16/2024
2.1.100 6,555 2/16/2024
2.1.99 40,089 2/9/2024
2.1.98 36,238 2/7/2024
2.1.97 4,567 2/6/2024
2.1.96 2,773 2/6/2024
2.1.95 454 2/6/2024
2.1.94 256 2/6/2024
2.1.93 13,392 2/4/2024
2.1.92 98,536 1/15/2024
2.1.91 5,347 1/15/2024
2.1.90 366 1/15/2024
2.1.89 3,112 1/15/2024
2.1.88 314 1/15/2024
2.1.87 37,320 1/7/2024
2.1.86 7,341 1/5/2024
2.1.85 4,440 1/5/2024
2.1.84 350 1/5/2024
2.1.83 373 1/5/2024
2.1.82 5,044 1/5/2024
2.1.81 12,705 1/1/2024
2.1.80 427 1/1/2024
2.1.79 8,320 12/28/2023
2.1.78 4,228 12/28/2023
2.1.77 4,132 12/27/2023
2.1.76 402 12/27/2023
2.1.75 404 12/27/2023
2.1.74 4,986 12/27/2023
2.1.73 376 12/27/2023
2.1.72 400 12/27/2023
2.1.71 15,657 12/25/2023
2.1.70 859 12/25/2023
2.1.69 413 12/25/2023
2.1.68 413 12/25/2023
2.1.67 4,698 12/25/2023
2.1.66 12,694 12/24/2023
2.1.65 7,655 12/23/2023
2.1.64 2,068 12/23/2023
2.1.63 374 12/23/2023
2.1.62 5,487 12/23/2023
2.1.61 406 12/23/2023
2.1.60 370 12/23/2023
2.1.59 1,815 12/23/2023
2.1.58 379 12/23/2023
2.1.57 13,649 12/19/2023
2.1.56 4,545 12/18/2023
2.1.55 12,803 12/10/2023
2.1.51 6,234 12/10/2023
2.1.50 10,996 12/9/2023
2.1.49 422 12/9/2023
2.1.48 508 12/9/2023
2.1.47 438 12/9/2023
2.1.46 433 12/9/2023
2.1.45 457 12/9/2023
2.1.44 7,423 12/9/2023
2.1.43 11,555 12/6/2023
2.1.42 9,292 12/4/2023
2.1.41 5,935 12/4/2023
2.1.40 466 12/4/2023
2.1.39 886 12/4/2023
2.1.38 505 12/4/2023
2.1.37 15,702 11/23/2023
2.1.36 434 11/23/2023
2.1.35 803 11/23/2023
2.1.34 457 11/23/2023
2.1.33 2,047 11/23/2023
2.1.32 3,209 11/23/2023
2.1.31 9,494 11/20/2023
2.1.30 3,840 11/20/2023
2.1.29 6,798 11/19/2023
2.1.28 1,162 11/19/2023
2.1.27 441 11/19/2023
2.1.26 451 11/19/2023
2.1.25 441 11/19/2023
2.1.24 2,327 11/19/2023
2.1.23 10,015 11/18/2023
2.1.22 471 11/18/2023
2.1.21 3,302 11/18/2023
2.1.20 2,232 11/18/2023
2.1.19 450 11/18/2023
2.1.18 5,797 11/17/2023
2.1.17 1,464 11/17/2023
2.1.16 476 11/17/2023
2.1.15 458 11/17/2023
2.1.14 1,880 11/17/2023
2.1.13 7,971 11/17/2023
2.1.12 2,103 11/17/2023
2.1.11 454 11/17/2023
2.1.10 487 11/17/2023
2.1.9 500 11/17/2023
2.1.8 3,682 11/17/2023
2.1.7 1,660 11/16/2023
2.1.6 412 11/16/2023
2.1.5 909 11/16/2023
2.1.4 449 11/16/2023
2.0.140 5,540 11/15/2023
2.0.139 472 11/15/2023
2.0.138 453 11/15/2023
2.0.137 456 11/15/2023
2.0.136 448 11/15/2023
2.0.3 433 11/16/2023
2.0.2 456 11/16/2023
2.0.1 410 11/16/2023
1.0.135 12,240 11/10/2023
1.0.134 479 11/10/2023
1.0.133 5,820 11/9/2023
1.0.132 429 11/9/2023
1.0.131 474 11/9/2023
1.0.130 2,096 11/8/2023
1.0.129 10,512 11/6/2023
1.0.128 452 11/6/2023
1.0.127 482 11/6/2023
1.0.126 484 11/6/2023
1.0.125 3,917 11/3/2023
1.0.124 7,085 11/2/2023
1.0.123 498 11/2/2023
1.0.122 481 11/2/2023
1.0.121 453 11/2/2023
1.0.120 3,770 11/1/2023
1.0.119 19,714 10/18/2023
1.0.118 516 10/18/2023
1.0.117 503 10/18/2023
1.0.116 494 10/18/2023
1.0.115 4,241 10/17/2023
1.0.114 4,963 10/16/2023
1.0.113 504 10/16/2023
1.0.112 498 10/16/2023
1.0.111 530 10/16/2023
1.0.110 7,357 10/13/2023
1.0.109 551 10/13/2023
1.0.108 13,844 9/19/2023
1.0.107 540 9/19/2023
1.0.106 539 9/19/2023
1.0.105 498 9/19/2023
1.0.104 6,600 9/18/2023
1.0.103 540 9/18/2023
1.0.102 16,206 8/30/2023
1.0.101 597 8/30/2023
1.0.100 557 8/30/2023
1.0.99 560 8/30/2023
1.0.98 579 8/30/2023
1.0.97 12,003 8/25/2023
1.0.96 5,481 8/24/2023
1.0.95 569 8/24/2023
1.0.94 10,685 8/18/2023
1.0.93 592 8/18/2023
1.0.92 4,929 8/17/2023
1.0.91 564 8/17/2023
1.0.90 576 8/17/2023
1.0.89 18,440 8/8/2023
1.0.88 595 8/8/2023
1.0.87 5,978 8/7/2023
1.0.86 625 8/7/2023
1.0.85 595 8/7/2023
1.0.84 22,332 7/10/2023
1.0.83 673 7/10/2023
1.0.82 686 7/10/2023
1.0.81 700 7/10/2023
1.0.80 5,037 7/7/2023
1.0.79 632 7/7/2023
1.0.78 16,547 6/29/2023
1.0.77 4,561 6/28/2023
1.0.76 659 6/28/2023
1.0.75 696 6/28/2023
1.0.74 47,785 6/7/2023
1.0.73 6,109 6/7/2023
1.0.72 698 6/7/2023
1.0.71 691 6/7/2023
1.0.70 7,397 6/6/2023
1.0.69 688 6/6/2023
1.0.68 2,840 6/5/2023
1.0.67 660 6/5/2023
1.0.66 7,216 6/2/2023
1.0.65 713 6/2/2023
1.0.64 693 6/2/2023
1.0.63 28,637 5/30/2023
1.0.62 683 5/30/2023
1.0.61 8,290 5/29/2023
1.0.60 694 5/29/2023
1.0.59 6,630 5/26/2023
1.0.58 12,384 5/25/2023
1.0.57 701 5/25/2023
1.0.56 6,369 5/24/2023
1.0.55 717 5/24/2023
1.0.54 712 5/24/2023
1.0.53 691 5/24/2023
1.0.52 794 5/24/2023
1.0.51 4,239 5/23/2023
1.0.50 696 5/23/2023
1.0.49 688 5/23/2023
1.0.46 13,453 5/22/2023
1.0.45 10,975 5/18/2023
1.0.44 6,567 5/17/2023
1.0.43 682 5/17/2023
1.0.42 670 5/17/2023
1.0.41 667 5/17/2023
1.0.40 17,387 4/24/2023
1.0.39 2,397 4/24/2023
1.0.38 743 4/24/2023
1.0.37 4,069 4/21/2023
1.0.36 693 4/21/2023
1.0.35 697 4/21/2023
1.0.34 4,518 4/20/2023
1.0.33 883 4/20/2023
1.0.32 831 4/20/2023
1.0.31 4,159 4/19/2023
1.0.30 1,887 4/18/2023
1.0.29 713 4/18/2023
1.0.28 1,878 4/18/2023
1.0.27 3,357 4/17/2023
1.0.26 804 4/16/2023
1.0.25 748 4/16/2023
1.0.24 3,505 4/14/2023
1.0.23 2,555 4/13/2023
1.0.22 2,450 4/12/2023
1.0.21 730 4/12/2023
1.0.20 730 4/12/2023
1.0.19 1,756 4/11/2023
1.0.18 798 4/11/2023
1.0.17 2,581 4/11/2023
1.0.16 2,991 4/7/2023
1.0.15 3,807 4/3/2023
1.0.14 762 4/3/2023
1.0.13 765 4/3/2023
1.0.12 726 4/3/2023
1.0.11 2,051 4/1/2023
1.0.10 1,157 3/30/2023
1.0.9 887 3/26/2023
1.0.7 3,968 2/27/2023
1.0.6 792 2/26/2023
1.0.5 786 2/22/2023
1.0.4 978 2/22/2023
1.0.3 804 2/22/2023
1.0.2 1,353 2/12/2023
1.0.1 1,006 2/12/2023