Soenneker.Extensions.String 3.0.326

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

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

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.351 64 1/2/2025
3.0.350 16 1/2/2025
3.0.349 18 1/2/2025
3.0.348 1,319 1/2/2025
3.0.347 26 1/2/2025
3.0.346 24 1/2/2025
3.0.345 171 1/2/2025
3.0.344 8,450 1/1/2025
3.0.343 57 1/1/2025
3.0.342 61 1/1/2025
3.0.341 419 12/31/2024
3.0.340 61 12/31/2024
3.0.339 57 12/31/2024
3.0.338 1,158 12/31/2024
3.0.337 81 12/31/2024
3.0.336 68 12/31/2024
3.0.335 89 12/31/2024
3.0.334 4,163 12/31/2024
3.0.333 15,560 12/31/2024
3.0.332 57 12/31/2024
3.0.331 59 12/31/2024
3.0.330 7,635 12/31/2024
3.0.329 71 12/31/2024
3.0.328 69 12/31/2024
3.0.327 3,514 12/31/2024
3.0.326 37,825 12/24/2024
3.0.325 74 12/24/2024
3.0.324 74 12/24/2024
3.0.323 6,757 12/24/2024
3.0.322 80 12/24/2024
3.0.321 76 12/24/2024
3.0.320 1,573 12/24/2024
3.0.319 40,367 12/22/2024
3.0.318 441 12/22/2024
3.0.317 76 12/22/2024
3.0.316 6,659 12/21/2024
3.0.315 69 12/21/2024
3.0.314 1,001 12/21/2024
3.0.313 9,687 12/21/2024
3.0.312 76 12/21/2024
3.0.311 3,345 12/21/2024
3.0.310 5,005 12/21/2024
3.0.309 80 12/21/2024
3.0.308 7,173 12/21/2024
3.0.307 72 12/21/2024
3.0.306 571 12/21/2024
3.0.305 5,059 12/21/2024
3.0.304 71 12/21/2024
3.0.303 7,249 12/20/2024
3.0.302 3,767 12/20/2024
3.0.301 73 12/20/2024
3.0.300 14,532 12/19/2024
3.0.299 1,440 12/19/2024
3.0.298 622 12/18/2024
3.0.297 74 12/18/2024
3.0.296 213 12/18/2024
3.0.295 25,051 12/17/2024
3.0.294 3,811 12/17/2024
3.0.293 87 12/17/2024
3.0.292 336 12/16/2024
3.0.291 86 12/16/2024
3.0.290 78 12/16/2024
3.0.289 75 12/16/2024
3.0.288 56,214 12/5/2024
3.0.287 24,146 12/4/2024
3.0.286 8,530 12/4/2024
3.0.285 5,618 12/4/2024
3.0.284 3,335 12/4/2024
3.0.283 6,984 12/4/2024
3.0.282 185 12/4/2024
3.0.281 14,138 12/3/2024
3.0.280 107 12/3/2024
3.0.279 6,748 12/3/2024
3.0.278 4,074 12/2/2024
3.0.277 87 12/2/2024
3.0.276 6,111 12/2/2024
3.0.275 14,452 12/1/2024
3.0.274 5,848 12/1/2024
3.0.273 94 12/1/2024
3.0.272 101 12/1/2024
3.0.271 39,309 11/19/2024
3.0.270 107 11/19/2024
3.0.269 5,361 11/19/2024
3.0.268 115 11/19/2024
3.0.267 92 11/19/2024
3.0.266 14,235 11/19/2024
3.0.265 3,731 11/19/2024
3.0.264 28,079 11/14/2024
3.0.263 106 11/14/2024
3.0.262 2,964 11/14/2024
3.0.261 101 11/14/2024
3.0.260 97 11/14/2024
3.0.259 1,754 11/13/2024
3.0.258 105 11/13/2024
2.1.257 48,917 11/8/2024
2.1.256 14,248 11/8/2024
2.1.255 83 11/8/2024
2.1.254 78 11/8/2024
2.1.253 48,172 10/28/2024
2.1.252 111,458 10/1/2024
2.1.251 16,856 9/30/2024
2.1.250 29,721 9/27/2024
2.1.249 100 9/27/2024
2.1.248 89 9/27/2024
2.1.247 2,793 9/27/2024
2.1.246 87 9/27/2024
2.1.245 87 9/27/2024
2.1.244 87 9/27/2024
2.1.243 53,719 9/23/2024
2.1.242 766 9/23/2024
2.1.241 3,734 9/23/2024
2.1.240 91 9/23/2024
2.1.239 1,274 9/23/2024
2.1.238 98 9/23/2024
2.1.237 7,329 9/22/2024
2.1.236 28,249 9/17/2024
2.1.235 213 9/17/2024
2.1.234 100 9/17/2024
2.1.233 202 9/17/2024
2.1.232 98 9/17/2024
2.1.231 4,181 9/17/2024
2.1.230 122 9/17/2024
2.1.229 49,886 9/11/2024
2.1.228 17,045 9/11/2024
2.1.227 23,474 9/9/2024
2.1.226 9,660 9/9/2024
2.1.225 5,908 9/9/2024
2.1.224 8,318 9/9/2024
2.1.223 8,956 9/9/2024
2.1.222 101 9/9/2024
2.1.221 100 9/9/2024
2.1.220 36,425 9/5/2024
2.1.219 7,167 9/5/2024
2.1.218 102 9/5/2024
2.1.217 117 9/5/2024
2.1.216 1,184 9/5/2024
2.1.215 103 9/5/2024
2.1.214 3,898 9/5/2024
2.1.213 20,810 9/4/2024
2.1.212 49,593 8/20/2024
2.1.211 5,625 8/20/2024
2.1.210 115 8/20/2024
2.1.209 116 8/20/2024
2.1.208 5,006 8/20/2024
2.1.207 118 8/20/2024
2.1.206 107 8/20/2024
2.1.205 72,703 7/24/2024
2.1.204 5,775 7/24/2024
2.1.203 81 7/24/2024
2.1.202 26,953 7/13/2024
2.1.201 113 7/13/2024
2.1.200 15,653 7/10/2024
2.1.199 4,618 7/10/2024
2.1.198 125 7/10/2024
2.1.196 4,269 7/9/2024
2.1.194 3,330 7/9/2024
2.1.193 19,498 7/9/2024
2.1.192 5,904 7/9/2024
2.1.191 650 7/9/2024
2.1.190 100 7/9/2024
2.1.189 9,198 7/9/2024
2.1.188 2,801 7/8/2024
2.1.187 103 7/8/2024
2.1.186 125 7/8/2024
2.1.185 95 7/8/2024
2.1.184 96 7/8/2024
2.1.183 5,374 7/8/2024
2.1.182 115 7/8/2024
2.1.181 96 7/8/2024
2.1.180 556 7/8/2024
2.1.179 24,773 7/7/2024
2.1.178 3,231 7/7/2024
2.1.177 22,016 7/3/2024
2.1.176 37,087 6/14/2024
2.1.174 43,192 5/27/2024
2.1.173 3,083 5/27/2024
2.1.172 95 5/27/2024
2.1.171 20,185 5/25/2024
2.1.170 7,432 5/25/2024
2.1.169 108 5/25/2024
2.1.168 108 5/25/2024
2.1.167 4,404 5/25/2024
2.1.166 101 5/25/2024
2.1.165 105 5/25/2024
2.1.164 121 5/25/2024
2.1.163 4,100 5/25/2024
2.1.162 101 5/25/2024
2.1.161 18,914 5/22/2024
2.1.160 4,763 5/22/2024
2.1.159 2,388 5/22/2024
2.1.158 110 5/22/2024
2.1.157 112 5/22/2024
2.1.156 117 5/22/2024
2.1.155 9,787 5/22/2024
2.1.154 16,322 5/16/2024
2.1.153 47,092 4/28/2024
2.1.152 96 4/28/2024
2.1.151 7,304 4/28/2024
2.1.150 99 4/28/2024
2.1.149 113 4/28/2024
2.1.148 673 4/28/2024
2.1.147 110 4/28/2024
2.1.146 118 4/28/2024
2.1.145 5,201 4/27/2024
2.1.144 140 4/27/2024
2.1.143 107 4/27/2024
2.1.142 37,906 4/12/2024
2.1.141 130 4/12/2024
2.1.140 4,789 4/12/2024
2.1.139 134 4/12/2024
2.1.138 116 4/12/2024
2.1.137 3,130 4/12/2024
2.1.136 126 4/12/2024
2.1.135 123 4/12/2024
2.1.134 113 4/12/2024
2.1.133 25,779 4/1/2024
2.1.132 18,504 3/25/2024
2.1.131 20,096 3/18/2024
2.1.130 186 3/18/2024
2.1.129 349 3/18/2024
2.1.128 18,846 3/13/2024
2.1.127 175 3/13/2024
2.1.126 173 3/13/2024
2.1.125 1,653 3/13/2024
2.1.124 167 3/13/2024
2.1.123 176 3/13/2024
2.1.122 37,770 3/8/2024
2.1.121 15,871 3/3/2024
2.1.120 13,268 3/2/2024
2.1.119 2,054 3/1/2024
2.1.117 12,061 2/28/2024
2.1.116 22,902 2/25/2024
2.1.115 216 2/25/2024
2.1.114 18,488 2/21/2024
2.1.113 4,687 2/21/2024
2.1.112 2,800 2/21/2024
2.1.111 1,859 2/21/2024
2.1.110 238 2/21/2024
2.1.109 5,972 2/21/2024
2.1.108 229 2/21/2024
2.1.107 244 2/21/2024
2.1.106 14,932 2/20/2024
2.1.105 1,632 2/20/2024
2.1.104 9,962 2/19/2024
2.1.103 10,212 2/16/2024
2.1.102 6,902 2/16/2024
2.1.101 238 2/16/2024
2.1.100 6,566 2/16/2024
2.1.99 40,129 2/9/2024
2.1.98 36,261 2/7/2024
2.1.97 4,571 2/6/2024
2.1.96 2,775 2/6/2024
2.1.95 456 2/6/2024
2.1.94 260 2/6/2024
2.1.93 13,399 2/4/2024
2.1.92 98,576 1/15/2024
2.1.91 5,349 1/15/2024
2.1.90 370 1/15/2024
2.1.89 3,116 1/15/2024
2.1.88 316 1/15/2024
2.1.87 37,357 1/7/2024
2.1.86 7,349 1/5/2024
2.1.85 4,451 1/5/2024
2.1.84 352 1/5/2024
2.1.83 375 1/5/2024
2.1.82 5,059 1/5/2024
2.1.81 12,716 1/1/2024
2.1.80 429 1/1/2024
2.1.79 8,332 12/28/2023
2.1.78 4,230 12/28/2023
2.1.77 4,134 12/27/2023
2.1.76 404 12/27/2023
2.1.75 406 12/27/2023
2.1.74 4,993 12/27/2023
2.1.73 378 12/27/2023
2.1.72 402 12/27/2023
2.1.71 15,664 12/25/2023
2.1.70 861 12/25/2023
2.1.69 415 12/25/2023
2.1.68 415 12/25/2023
2.1.67 4,702 12/25/2023
2.1.66 12,701 12/24/2023
2.1.65 7,659 12/23/2023
2.1.64 2,072 12/23/2023
2.1.63 381 12/23/2023
2.1.62 5,510 12/23/2023
2.1.61 429 12/23/2023
2.1.60 374 12/23/2023
2.1.59 1,817 12/23/2023
2.1.58 381 12/23/2023
2.1.57 13,670 12/19/2023
2.1.56 4,562 12/18/2023
2.1.55 12,821 12/10/2023
2.1.51 6,238 12/10/2023
2.1.50 11,005 12/9/2023
2.1.49 424 12/9/2023
2.1.48 512 12/9/2023
2.1.47 441 12/9/2023
2.1.46 435 12/9/2023
2.1.45 459 12/9/2023
2.1.44 7,432 12/9/2023
2.1.43 11,574 12/6/2023
2.1.42 9,294 12/4/2023
2.1.41 5,939 12/4/2023
2.1.40 487 12/4/2023
2.1.39 890 12/4/2023
2.1.38 526 12/4/2023
2.1.37 15,721 11/23/2023
2.1.36 438 11/23/2023
2.1.35 823 11/23/2023
2.1.34 459 11/23/2023
2.1.33 2,051 11/23/2023
2.1.32 3,213 11/23/2023
2.1.31 9,508 11/20/2023
2.1.30 3,844 11/20/2023
2.1.29 6,802 11/19/2023
2.1.28 1,164 11/19/2023
2.1.27 445 11/19/2023
2.1.26 453 11/19/2023
2.1.25 443 11/19/2023
2.1.24 2,331 11/19/2023
2.1.23 10,019 11/18/2023
2.1.22 479 11/18/2023
2.1.21 3,306 11/18/2023
2.1.20 2,236 11/18/2023
2.1.19 471 11/18/2023
2.1.18 5,805 11/17/2023
2.1.17 1,466 11/17/2023
2.1.16 480 11/17/2023
2.1.15 462 11/17/2023
2.1.14 1,884 11/17/2023
2.1.13 7,973 11/17/2023
2.1.12 2,105 11/17/2023
2.1.11 456 11/17/2023
2.1.10 489 11/17/2023
2.1.9 504 11/17/2023
2.1.8 3,691 11/17/2023
2.1.7 1,664 11/16/2023
2.1.6 414 11/16/2023
2.1.5 913 11/16/2023
2.1.4 451 11/16/2023
2.0.140 5,542 11/15/2023
2.0.139 476 11/15/2023
2.0.138 459 11/15/2023
2.0.137 462 11/15/2023
2.0.136 452 11/15/2023
2.0.3 445 11/16/2023
2.0.2 460 11/16/2023
2.0.1 416 11/16/2023
1.0.135 12,255 11/10/2023
1.0.134 481 11/10/2023
1.0.133 5,824 11/9/2023
1.0.132 433 11/9/2023
1.0.131 478 11/9/2023
1.0.130 2,100 11/8/2023
1.0.129 10,514 11/6/2023
1.0.128 458 11/6/2023
1.0.127 484 11/6/2023
1.0.126 486 11/6/2023
1.0.125 3,919 11/3/2023
1.0.124 7,087 11/2/2023
1.0.123 504 11/2/2023
1.0.122 483 11/2/2023
1.0.121 455 11/2/2023
1.0.120 3,781 11/1/2023
1.0.119 19,718 10/18/2023
1.0.118 520 10/18/2023
1.0.117 507 10/18/2023
1.0.116 498 10/18/2023
1.0.115 4,247 10/17/2023
1.0.114 4,967 10/16/2023
1.0.113 508 10/16/2023
1.0.112 500 10/16/2023
1.0.111 532 10/16/2023
1.0.110 7,369 10/13/2023
1.0.109 553 10/13/2023
1.0.108 13,855 9/19/2023
1.0.107 546 9/19/2023
1.0.106 558 9/19/2023
1.0.105 502 9/19/2023
1.0.104 6,602 9/18/2023
1.0.103 542 9/18/2023
1.0.102 16,215 8/30/2023
1.0.101 601 8/30/2023
1.0.100 561 8/30/2023
1.0.99 562 8/30/2023
1.0.98 581 8/30/2023
1.0.97 12,014 8/25/2023
1.0.96 5,490 8/24/2023
1.0.95 571 8/24/2023
1.0.94 10,691 8/18/2023
1.0.93 594 8/18/2023
1.0.92 4,933 8/17/2023
1.0.91 566 8/17/2023
1.0.90 578 8/17/2023
1.0.89 18,444 8/8/2023
1.0.88 613 8/8/2023
1.0.87 5,980 8/7/2023
1.0.86 629 8/7/2023
1.0.85 605 8/7/2023
1.0.84 22,336 7/10/2023
1.0.83 677 7/10/2023
1.0.82 688 7/10/2023
1.0.81 704 7/10/2023
1.0.80 5,046 7/7/2023
1.0.79 649 7/7/2023
1.0.78 16,588 6/29/2023
1.0.77 4,571 6/28/2023
1.0.76 674 6/28/2023
1.0.75 698 6/28/2023
1.0.74 47,812 6/7/2023
1.0.73 6,111 6/7/2023
1.0.72 700 6/7/2023
1.0.71 693 6/7/2023
1.0.70 7,399 6/6/2023
1.0.69 690 6/6/2023
1.0.68 2,844 6/5/2023
1.0.67 662 6/5/2023
1.0.66 7,218 6/2/2023
1.0.65 715 6/2/2023
1.0.64 697 6/2/2023
1.0.63 28,639 5/30/2023
1.0.62 689 5/30/2023
1.0.61 8,294 5/29/2023
1.0.60 698 5/29/2023
1.0.59 6,632 5/26/2023
1.0.58 12,386 5/25/2023
1.0.57 703 5/25/2023
1.0.56 6,371 5/24/2023
1.0.55 719 5/24/2023
1.0.54 714 5/24/2023
1.0.53 695 5/24/2023
1.0.52 796 5/24/2023
1.0.51 4,241 5/23/2023
1.0.50 698 5/23/2023
1.0.49 690 5/23/2023
1.0.46 13,485 5/22/2023
1.0.45 11,010 5/18/2023
1.0.44 6,569 5/17/2023
1.0.43 684 5/17/2023
1.0.42 672 5/17/2023
1.0.41 669 5/17/2023
1.0.40 17,407 4/24/2023
1.0.39 2,399 4/24/2023
1.0.38 745 4/24/2023
1.0.37 4,071 4/21/2023
1.0.36 695 4/21/2023
1.0.35 699 4/21/2023
1.0.34 4,527 4/20/2023
1.0.33 885 4/20/2023
1.0.32 833 4/20/2023
1.0.31 4,161 4/19/2023
1.0.30 1,889 4/18/2023
1.0.29 715 4/18/2023
1.0.28 1,880 4/18/2023
1.0.27 3,359 4/17/2023
1.0.26 806 4/16/2023
1.0.25 752 4/16/2023
1.0.24 3,507 4/14/2023
1.0.23 2,557 4/13/2023
1.0.22 2,452 4/12/2023
1.0.21 732 4/12/2023
1.0.20 732 4/12/2023
1.0.19 1,758 4/11/2023
1.0.18 802 4/11/2023
1.0.17 2,583 4/11/2023
1.0.16 2,993 4/7/2023
1.0.15 3,809 4/3/2023
1.0.14 764 4/3/2023
1.0.13 767 4/3/2023
1.0.12 728 4/3/2023
1.0.11 2,053 4/1/2023
1.0.10 1,159 3/30/2023
1.0.9 899 3/26/2023
1.0.7 3,970 2/27/2023
1.0.6 794 2/26/2023
1.0.5 788 2/22/2023
1.0.4 980 2/22/2023
1.0.3 823 2/22/2023
1.0.2 1,355 2/12/2023
1.0.1 1,010 2/12/2023