Soenneker.Extensions.String 3.0.275

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

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

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 (26)

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

A collection of helpful enumerable string extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.326 8,331 12/24/2024
3.0.325 54 12/24/2024
3.0.324 55 12/24/2024
3.0.323 5,583 12/24/2024
3.0.322 61 12/24/2024
3.0.321 61 12/24/2024
3.0.320 1,326 12/24/2024
3.0.319 36,815 12/22/2024
3.0.318 432 12/22/2024
3.0.317 68 12/22/2024
3.0.316 5,371 12/21/2024
3.0.315 61 12/21/2024
3.0.314 993 12/21/2024
3.0.313 9,033 12/21/2024
3.0.312 68 12/21/2024
3.0.311 3,332 12/21/2024
3.0.310 4,809 12/21/2024
3.0.309 71 12/21/2024
3.0.308 6,460 12/21/2024
3.0.307 63 12/21/2024
3.0.306 562 12/21/2024
3.0.305 4,706 12/21/2024
3.0.304 62 12/21/2024
3.0.303 7,118 12/20/2024
3.0.302 3,652 12/20/2024
3.0.301 65 12/20/2024
3.0.300 13,831 12/19/2024
3.0.299 1,432 12/19/2024
3.0.298 614 12/18/2024
3.0.297 66 12/18/2024
3.0.296 205 12/18/2024
3.0.295 24,143 12/17/2024
3.0.294 3,803 12/17/2024
3.0.293 79 12/17/2024
3.0.292 328 12/16/2024
3.0.291 78 12/16/2024
3.0.290 70 12/16/2024
3.0.289 67 12/16/2024
3.0.288 56,204 12/5/2024
3.0.287 24,135 12/4/2024
3.0.286 8,522 12/4/2024
3.0.285 5,610 12/4/2024
3.0.284 3,327 12/4/2024
3.0.283 6,976 12/4/2024
3.0.282 176 12/4/2024
3.0.281 14,127 12/3/2024
3.0.280 97 12/3/2024
3.0.279 6,740 12/3/2024
3.0.278 4,066 12/2/2024
3.0.277 77 12/2/2024
3.0.276 6,101 12/2/2024
3.0.275 14,442 12/1/2024
3.0.274 5,840 12/1/2024
3.0.273 86 12/1/2024
3.0.272 93 12/1/2024
3.0.271 39,298 11/19/2024
3.0.270 102 11/19/2024
3.0.269 5,356 11/19/2024
3.0.268 110 11/19/2024
3.0.267 87 11/19/2024
3.0.266 14,230 11/19/2024
3.0.265 3,726 11/19/2024
3.0.264 28,068 11/14/2024
3.0.263 101 11/14/2024
3.0.262 2,949 11/14/2024
3.0.261 96 11/14/2024
3.0.260 92 11/14/2024
3.0.259 1,749 11/13/2024
3.0.258 100 11/13/2024
2.1.257 48,864 11/8/2024
2.1.256 14,242 11/8/2024
2.1.255 79 11/8/2024
2.1.254 74 11/8/2024
2.1.253 48,164 10/28/2024
2.1.252 111,436 10/1/2024
2.1.251 16,853 9/30/2024
2.1.250 29,678 9/27/2024
2.1.249 97 9/27/2024
2.1.248 86 9/27/2024
2.1.247 2,788 9/27/2024
2.1.246 82 9/27/2024
2.1.245 84 9/27/2024
2.1.244 84 9/27/2024
2.1.243 53,698 9/23/2024
2.1.242 763 9/23/2024
2.1.241 3,724 9/23/2024
2.1.240 89 9/23/2024
2.1.239 1,272 9/23/2024
2.1.238 96 9/23/2024
2.1.237 7,319 9/22/2024
2.1.236 28,239 9/17/2024
2.1.235 210 9/17/2024
2.1.234 97 9/17/2024
2.1.233 199 9/17/2024
2.1.232 93 9/17/2024
2.1.231 4,178 9/17/2024
2.1.230 117 9/17/2024
2.1.229 49,873 9/11/2024
2.1.228 17,041 9/11/2024
2.1.227 23,466 9/9/2024
2.1.226 9,657 9/9/2024
2.1.225 5,904 9/9/2024
2.1.224 8,316 9/9/2024
2.1.223 8,953 9/9/2024
2.1.222 98 9/9/2024
2.1.221 97 9/9/2024
2.1.220 36,414 9/5/2024
2.1.219 7,165 9/5/2024
2.1.218 100 9/5/2024
2.1.217 114 9/5/2024
2.1.216 1,181 9/5/2024
2.1.215 100 9/5/2024
2.1.214 3,896 9/5/2024
2.1.213 20,805 9/4/2024
2.1.212 49,586 8/20/2024
2.1.211 5,623 8/20/2024
2.1.210 111 8/20/2024
2.1.209 114 8/20/2024
2.1.208 5,004 8/20/2024
2.1.207 116 8/20/2024
2.1.206 105 8/20/2024
2.1.205 72,701 7/24/2024
2.1.204 5,773 7/24/2024
2.1.203 77 7/24/2024
2.1.202 26,930 7/13/2024
2.1.201 111 7/13/2024
2.1.200 15,651 7/10/2024
2.1.199 4,616 7/10/2024
2.1.198 123 7/10/2024
2.1.196 4,267 7/9/2024
2.1.194 3,328 7/9/2024
2.1.193 19,491 7/9/2024
2.1.192 5,902 7/9/2024
2.1.191 648 7/9/2024
2.1.190 98 7/9/2024
2.1.189 9,196 7/9/2024
2.1.188 2,799 7/8/2024
2.1.187 101 7/8/2024
2.1.186 121 7/8/2024
2.1.185 93 7/8/2024
2.1.184 94 7/8/2024
2.1.183 5,370 7/8/2024
2.1.182 96 7/8/2024
2.1.181 94 7/8/2024
2.1.180 537 7/8/2024
2.1.179 24,766 7/7/2024
2.1.178 3,229 7/7/2024
2.1.177 22,014 7/3/2024
2.1.176 37,067 6/14/2024
2.1.174 43,188 5/27/2024
2.1.173 3,081 5/27/2024
2.1.172 93 5/27/2024
2.1.171 20,179 5/25/2024
2.1.170 7,425 5/25/2024
2.1.169 106 5/25/2024
2.1.168 106 5/25/2024
2.1.167 4,402 5/25/2024
2.1.166 99 5/25/2024
2.1.165 103 5/25/2024
2.1.164 117 5/25/2024
2.1.163 4,098 5/25/2024
2.1.162 99 5/25/2024
2.1.161 18,912 5/22/2024
2.1.160 4,761 5/22/2024
2.1.159 2,386 5/22/2024
2.1.158 108 5/22/2024
2.1.157 108 5/22/2024
2.1.156 115 5/22/2024
2.1.155 9,785 5/22/2024
2.1.154 16,317 5/16/2024
2.1.153 47,084 4/28/2024
2.1.152 94 4/28/2024
2.1.151 7,295 4/28/2024
2.1.150 97 4/28/2024
2.1.149 109 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,199 4/27/2024
2.1.144 138 4/27/2024
2.1.143 105 4/27/2024
2.1.142 37,893 4/12/2024
2.1.141 128 4/12/2024
2.1.140 4,787 4/12/2024
2.1.139 132 4/12/2024
2.1.138 114 4/12/2024
2.1.137 3,128 4/12/2024
2.1.136 124 4/12/2024
2.1.135 121 4/12/2024
2.1.134 111 4/12/2024
2.1.133 25,734 4/1/2024
2.1.132 18,497 3/25/2024
2.1.131 20,085 3/18/2024
2.1.130 184 3/18/2024
2.1.129 347 3/18/2024
2.1.128 18,839 3/13/2024
2.1.127 173 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 172 3/13/2024
2.1.122 37,754 3/8/2024
2.1.121 15,869 3/3/2024
2.1.120 13,262 3/2/2024
2.1.119 2,052 3/1/2024
2.1.117 12,054 2/28/2024
2.1.116 22,895 2/25/2024
2.1.115 214 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,856 2/21/2024
2.1.110 235 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,930 2/20/2024
2.1.105 1,630 2/20/2024
2.1.104 9,960 2/19/2024
2.1.103 10,206 2/16/2024
2.1.102 6,896 2/16/2024
2.1.101 232 2/16/2024
2.1.100 6,560 2/16/2024
2.1.99 40,122 2/9/2024
2.1.98 36,238 2/7/2024
2.1.97 4,569 2/6/2024
2.1.96 2,773 2/6/2024
2.1.95 454 2/6/2024
2.1.94 258 2/6/2024
2.1.93 13,397 2/4/2024
2.1.92 98,574 1/15/2024
2.1.91 5,347 1/15/2024
2.1.90 368 1/15/2024
2.1.89 3,114 1/15/2024
2.1.88 314 1/15/2024
2.1.87 37,331 1/7/2024
2.1.86 7,347 1/5/2024
2.1.85 4,444 1/5/2024
2.1.84 350 1/5/2024
2.1.83 373 1/5/2024
2.1.82 5,057 1/5/2024
2.1.81 12,714 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,991 12/27/2023
2.1.73 376 12/27/2023
2.1.72 400 12/27/2023
2.1.71 15,662 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,700 12/25/2023
2.1.66 12,699 12/24/2023
2.1.65 7,657 12/23/2023
2.1.64 2,068 12/23/2023
2.1.63 379 12/23/2023
2.1.62 5,508 12/23/2023
2.1.61 427 12/23/2023
2.1.60 372 12/23/2023
2.1.59 1,815 12/23/2023
2.1.58 379 12/23/2023
2.1.57 13,668 12/19/2023
2.1.56 4,560 12/18/2023
2.1.55 12,817 12/10/2023
2.1.51 6,234 12/10/2023
2.1.50 11,001 12/9/2023
2.1.49 422 12/9/2023
2.1.48 510 12/9/2023
2.1.47 439 12/9/2023
2.1.46 433 12/9/2023
2.1.45 457 12/9/2023
2.1.44 7,428 12/9/2023
2.1.43 11,572 12/6/2023
2.1.42 9,292 12/4/2023
2.1.41 5,935 12/4/2023
2.1.40 485 12/4/2023
2.1.39 888 12/4/2023
2.1.38 522 12/4/2023
2.1.37 15,707 11/23/2023
2.1.36 436 11/23/2023
2.1.35 821 11/23/2023
2.1.34 457 11/23/2023
2.1.33 2,049 11/23/2023
2.1.32 3,211 11/23/2023
2.1.31 9,506 11/20/2023
2.1.30 3,842 11/20/2023
2.1.29 6,800 11/19/2023
2.1.28 1,162 11/19/2023
2.1.27 443 11/19/2023
2.1.26 451 11/19/2023
2.1.25 441 11/19/2023
2.1.24 2,329 11/19/2023
2.1.23 10,017 11/18/2023
2.1.22 471 11/18/2023
2.1.21 3,304 11/18/2023
2.1.20 2,234 11/18/2023
2.1.19 452 11/18/2023
2.1.18 5,803 11/17/2023
2.1.17 1,464 11/17/2023
2.1.16 478 11/17/2023
2.1.15 460 11/17/2023
2.1.14 1,882 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 502 11/17/2023
2.1.8 3,687 11/17/2023
2.1.7 1,660 11/16/2023
2.1.6 412 11/16/2023
2.1.5 911 11/16/2023
2.1.4 449 11/16/2023
2.0.140 5,540 11/15/2023
2.0.139 474 11/15/2023
2.0.138 457 11/15/2023
2.0.137 460 11/15/2023
2.0.136 450 11/15/2023
2.0.3 443 11/16/2023
2.0.2 458 11/16/2023
2.0.1 414 11/16/2023
1.0.135 12,253 11/10/2023
1.0.134 479 11/10/2023
1.0.133 5,822 11/9/2023
1.0.132 431 11/9/2023
1.0.131 476 11/9/2023
1.0.130 2,096 11/8/2023
1.0.129 10,512 11/6/2023
1.0.128 456 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 500 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 518 10/18/2023
1.0.117 505 10/18/2023
1.0.116 494 10/18/2023
1.0.115 4,245 10/17/2023
1.0.114 4,963 10/16/2023
1.0.113 506 10/16/2023
1.0.112 498 10/16/2023
1.0.111 530 10/16/2023
1.0.110 7,367 10/13/2023
1.0.109 551 10/13/2023
1.0.108 13,851 9/19/2023
1.0.107 544 9/19/2023
1.0.106 556 9/19/2023
1.0.105 500 9/19/2023
1.0.104 6,600 9/18/2023
1.0.103 540 9/18/2023
1.0.102 16,208 8/30/2023
1.0.101 599 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,010 8/25/2023
1.0.96 5,488 8/24/2023
1.0.95 569 8/24/2023
1.0.94 10,689 8/18/2023
1.0.93 592 8/18/2023
1.0.92 4,931 8/17/2023
1.0.91 564 8/17/2023
1.0.90 576 8/17/2023
1.0.89 18,442 8/8/2023
1.0.88 609 8/8/2023
1.0.87 5,978 8/7/2023
1.0.86 627 8/7/2023
1.0.85 595 8/7/2023
1.0.84 22,334 7/10/2023
1.0.83 675 7/10/2023
1.0.82 686 7/10/2023
1.0.81 700 7/10/2023
1.0.80 5,044 7/7/2023
1.0.79 647 7/7/2023
1.0.78 16,586 6/29/2023
1.0.77 4,569 6/28/2023
1.0.76 672 6/28/2023
1.0.75 696 6/28/2023
1.0.74 47,796 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 687 5/30/2023
1.0.61 8,292 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,483 5/22/2023
1.0.45 11,008 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,405 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,525 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 750 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 800 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 897 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 821 2/22/2023
1.0.2 1,353 2/12/2023
1.0.1 1,008 2/12/2023