Soenneker.Extensions.String 3.0.345

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

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

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.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
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.Extensions.Enumerable.String

A collection of helpful enumerable string extension methods

Soenneker.Documents.Document

The base document type providing a building block for storage objects

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.401 0 1/23/2025
3.0.400 0 1/23/2025
3.0.398 0 1/23/2025
3.0.397 8,884 1/21/2025
3.0.396 51 1/21/2025
3.0.395 85 1/21/2025
3.0.394 14,278 1/20/2025
3.0.393 3,999 1/20/2025
3.0.392 1,503 1/20/2025
3.0.391 64 1/20/2025
3.0.390 8,920 1/20/2025
3.0.389 56 1/20/2025
3.0.388 3,408 1/20/2025
3.0.387 67 1/20/2025
3.0.386 62 1/20/2025
3.0.385 7,875 1/20/2025
3.0.384 62 1/20/2025
3.0.383 58 1/20/2025
3.0.382 61 1/20/2025
3.0.381 25,128 1/19/2025
3.0.380 267 1/19/2025
3.0.379 56 1/19/2025
3.0.378 14,800 1/18/2025
3.0.377 14,025 1/16/2025
3.0.376 15,909 1/16/2025
3.0.375 13,129 1/16/2025
3.0.374 12,229 1/15/2025
3.0.373 4,922 1/15/2025
3.0.372 3,154 1/15/2025
3.0.371 7,023 1/15/2025
3.0.370 5,611 1/15/2025
3.0.369 3,017 1/14/2025
3.0.368 1,101 1/14/2025
3.0.367 607 1/14/2025
3.0.366 84 1/14/2025
3.0.365 44 1/14/2025
3.0.364 2,953 1/14/2025
3.0.363 1,721 1/14/2025
3.0.362 34 1/14/2025
3.0.361 3,054 1/14/2025
3.0.360 17,656 1/12/2025
3.0.359 14,354 1/10/2025
3.0.358 3,948 1/10/2025
3.0.357 62 1/10/2025
3.0.356 65 1/10/2025
3.0.355 3,294 1/10/2025
3.0.354 63 1/10/2025
3.0.353 91 1/10/2025
3.0.352 70 1/10/2025
3.0.351 23,687 1/2/2025
3.0.350 99 1/2/2025
3.0.349 92 1/2/2025
3.0.348 6,365 1/2/2025
3.0.347 102 1/2/2025
3.0.346 97 1/2/2025
3.0.345 1,472 1/2/2025
3.0.344 16,607 1/1/2025
3.0.343 92 1/1/2025
3.0.342 111 1/1/2025
3.0.341 544 12/31/2024
3.0.340 96 12/31/2024
3.0.339 92 12/31/2024
3.0.338 2,050 12/31/2024
3.0.337 115 12/31/2024
3.0.336 102 12/31/2024
3.0.335 131 12/31/2024
3.0.334 7,791 12/31/2024
3.0.333 21,817 12/31/2024
3.0.332 82 12/31/2024
3.0.331 82 12/31/2024
3.0.330 9,742 12/31/2024
3.0.329 96 12/31/2024
3.0.328 92 12/31/2024
3.0.327 4,273 12/31/2024
3.0.326 39,979 12/24/2024
3.0.325 86 12/24/2024
3.0.324 86 12/24/2024
3.0.323 6,785 12/24/2024
3.0.322 92 12/24/2024
3.0.321 88 12/24/2024
3.0.320 1,587 12/24/2024
3.0.319 40,388 12/22/2024
3.0.318 457 12/22/2024
3.0.317 92 12/22/2024
3.0.316 6,673 12/21/2024
3.0.315 81 12/21/2024
3.0.314 1,015 12/21/2024
3.0.313 9,704 12/21/2024
3.0.312 88 12/21/2024
3.0.311 3,359 12/21/2024
3.0.310 5,019 12/21/2024
3.0.309 92 12/21/2024
3.0.308 7,187 12/21/2024
3.0.307 84 12/21/2024
3.0.306 583 12/21/2024
3.0.305 5,073 12/21/2024
3.0.304 83 12/21/2024
3.0.303 7,263 12/20/2024
3.0.302 3,781 12/20/2024
3.0.301 85 12/20/2024
3.0.300 14,546 12/19/2024
3.0.299 1,454 12/19/2024
3.0.298 634 12/18/2024
3.0.297 86 12/18/2024
3.0.296 225 12/18/2024
3.0.295 25,067 12/17/2024
3.0.294 3,840 12/17/2024
3.0.293 99 12/17/2024
3.0.292 348 12/16/2024
3.0.291 98 12/16/2024
3.0.290 90 12/16/2024
3.0.289 97 12/16/2024
3.0.288 56,238 12/5/2024
3.0.287 24,165 12/4/2024
3.0.286 8,547 12/4/2024
3.0.285 5,635 12/4/2024
3.0.284 3,350 12/4/2024
3.0.283 7,010 12/4/2024
3.0.282 195 12/4/2024
3.0.281 14,153 12/3/2024
3.0.280 117 12/3/2024
3.0.279 6,762 12/3/2024
3.0.278 4,086 12/2/2024
3.0.277 97 12/2/2024
3.0.276 6,123 12/2/2024
3.0.275 14,464 12/1/2024
3.0.274 5,860 12/1/2024
3.0.273 106 12/1/2024
3.0.272 113 12/1/2024
3.0.271 39,453 11/19/2024
3.0.270 118 11/19/2024
3.0.269 5,381 11/19/2024
3.0.268 128 11/19/2024
3.0.267 103 11/19/2024
3.0.266 14,254 11/19/2024
3.0.265 3,746 11/19/2024
3.0.264 28,093 11/14/2024
3.0.263 120 11/14/2024
3.0.262 2,978 11/14/2024
3.0.261 113 11/14/2024
3.0.260 111 11/14/2024
3.0.259 1,770 11/13/2024
3.0.258 117 11/13/2024
2.1.257 49,298 11/8/2024
2.1.256 14,261 11/8/2024
2.1.255 89 11/8/2024
2.1.254 86 11/8/2024
2.1.253 48,200 10/28/2024
2.1.252 111,623 10/1/2024
2.1.251 16,862 9/30/2024
2.1.250 29,768 9/27/2024
2.1.249 106 9/27/2024
2.1.248 93 9/27/2024
2.1.247 2,798 9/27/2024
2.1.246 92 9/27/2024
2.1.245 89 9/27/2024
2.1.244 92 9/27/2024
2.1.243 53,816 9/23/2024
2.1.242 770 9/23/2024
2.1.241 3,740 9/23/2024
2.1.240 97 9/23/2024
2.1.239 1,278 9/23/2024
2.1.238 102 9/23/2024
2.1.237 7,335 9/22/2024
2.1.236 28,256 9/17/2024
2.1.235 217 9/17/2024
2.1.234 105 9/17/2024
2.1.233 206 9/17/2024
2.1.232 102 9/17/2024
2.1.231 4,185 9/17/2024
2.1.230 126 9/17/2024
2.1.229 49,902 9/11/2024
2.1.228 17,047 9/11/2024
2.1.227 23,481 9/9/2024
2.1.226 9,662 9/9/2024
2.1.225 5,910 9/9/2024
2.1.224 8,324 9/9/2024
2.1.223 8,960 9/9/2024
2.1.222 105 9/9/2024
2.1.221 104 9/9/2024
2.1.220 36,427 9/5/2024
2.1.219 7,171 9/5/2024
2.1.218 104 9/5/2024
2.1.217 121 9/5/2024
2.1.216 1,188 9/5/2024
2.1.215 108 9/5/2024
2.1.214 3,900 9/5/2024
2.1.213 20,812 9/4/2024
2.1.212 49,618 8/20/2024
2.1.211 5,629 8/20/2024
2.1.210 117 8/20/2024
2.1.209 118 8/20/2024
2.1.208 5,008 8/20/2024
2.1.207 122 8/20/2024
2.1.206 111 8/20/2024
2.1.205 72,725 7/24/2024
2.1.204 5,779 7/24/2024
2.1.203 83 7/24/2024
2.1.202 27,025 7/13/2024
2.1.201 116 7/13/2024
2.1.200 15,678 7/10/2024
2.1.199 4,625 7/10/2024
2.1.198 130 7/10/2024
2.1.196 4,277 7/9/2024
2.1.194 3,333 7/9/2024
2.1.193 19,508 7/9/2024
2.1.192 5,907 7/9/2024
2.1.191 653 7/9/2024
2.1.190 105 7/9/2024
2.1.189 9,201 7/9/2024
2.1.188 2,804 7/8/2024
2.1.187 106 7/8/2024
2.1.186 128 7/8/2024
2.1.185 98 7/8/2024
2.1.184 101 7/8/2024
2.1.183 5,377 7/8/2024
2.1.182 118 7/8/2024
2.1.181 101 7/8/2024
2.1.180 559 7/8/2024
2.1.179 24,793 7/7/2024
2.1.178 3,241 7/7/2024
2.1.177 22,024 7/3/2024
2.1.176 37,121 6/14/2024
2.1.174 43,223 5/27/2024
2.1.173 3,086 5/27/2024
2.1.172 98 5/27/2024
2.1.171 20,202 5/25/2024
2.1.170 7,437 5/25/2024
2.1.169 113 5/25/2024
2.1.168 111 5/25/2024
2.1.167 4,407 5/25/2024
2.1.166 106 5/25/2024
2.1.165 110 5/25/2024
2.1.164 124 5/25/2024
2.1.163 4,103 5/25/2024
2.1.162 106 5/25/2024
2.1.161 18,939 5/22/2024
2.1.160 4,768 5/22/2024
2.1.159 2,391 5/22/2024
2.1.158 115 5/22/2024
2.1.157 115 5/22/2024
2.1.156 120 5/22/2024
2.1.155 9,799 5/22/2024
2.1.154 16,328 5/16/2024
2.1.153 47,114 4/28/2024
2.1.152 101 4/28/2024
2.1.151 7,322 4/28/2024
2.1.150 102 4/28/2024
2.1.149 116 4/28/2024
2.1.148 676 4/28/2024
2.1.147 113 4/28/2024
2.1.146 121 4/28/2024
2.1.145 5,205 4/27/2024
2.1.144 145 4/27/2024
2.1.143 110 4/27/2024
2.1.142 37,967 4/12/2024
2.1.141 137 4/12/2024
2.1.140 4,794 4/12/2024
2.1.139 139 4/12/2024
2.1.138 119 4/12/2024
2.1.137 3,135 4/12/2024
2.1.136 131 4/12/2024
2.1.135 128 4/12/2024
2.1.134 116 4/12/2024
2.1.133 25,887 4/1/2024
2.1.132 18,521 3/25/2024
2.1.131 20,121 3/18/2024
2.1.130 191 3/18/2024
2.1.129 352 3/18/2024
2.1.128 18,854 3/13/2024
2.1.127 178 3/13/2024
2.1.126 176 3/13/2024
2.1.125 1,658 3/13/2024
2.1.124 170 3/13/2024
2.1.123 179 3/13/2024
2.1.122 37,789 3/8/2024
2.1.121 15,874 3/3/2024
2.1.120 13,280 3/2/2024
2.1.119 2,057 3/1/2024
2.1.117 12,070 2/28/2024
2.1.116 22,932 2/25/2024
2.1.115 222 2/25/2024
2.1.114 18,494 2/21/2024
2.1.113 4,693 2/21/2024
2.1.112 2,804 2/21/2024
2.1.111 1,864 2/21/2024
2.1.110 241 2/21/2024
2.1.109 5,977 2/21/2024
2.1.108 234 2/21/2024
2.1.107 249 2/21/2024
2.1.106 14,943 2/20/2024
2.1.105 1,637 2/20/2024
2.1.104 9,968 2/19/2024
2.1.103 10,215 2/16/2024
2.1.102 6,905 2/16/2024
2.1.101 241 2/16/2024
2.1.100 6,571 2/16/2024
2.1.99 40,155 2/9/2024
2.1.98 36,277 2/7/2024
2.1.97 4,574 2/6/2024
2.1.96 2,778 2/6/2024
2.1.95 459 2/6/2024
2.1.94 263 2/6/2024
2.1.93 13,410 2/4/2024
2.1.92 98,600 1/15/2024
2.1.91 5,352 1/15/2024
2.1.90 373 1/15/2024
2.1.89 3,119 1/15/2024
2.1.88 319 1/15/2024
2.1.87 37,365 1/7/2024
2.1.86 7,362 1/5/2024
2.1.85 4,454 1/5/2024
2.1.84 355 1/5/2024
2.1.83 378 1/5/2024
2.1.82 5,062 1/5/2024
2.1.81 12,719 1/1/2024
2.1.80 432 1/1/2024
2.1.79 8,335 12/28/2023
2.1.78 4,233 12/28/2023
2.1.77 4,142 12/27/2023
2.1.76 407 12/27/2023
2.1.75 409 12/27/2023
2.1.74 4,996 12/27/2023
2.1.73 382 12/27/2023
2.1.72 405 12/27/2023
2.1.71 15,678 12/25/2023
2.1.70 864 12/25/2023
2.1.69 418 12/25/2023
2.1.68 418 12/25/2023
2.1.67 4,705 12/25/2023
2.1.66 12,704 12/24/2023
2.1.65 7,662 12/23/2023
2.1.64 2,075 12/23/2023
2.1.63 384 12/23/2023
2.1.62 5,521 12/23/2023
2.1.61 433 12/23/2023
2.1.60 377 12/23/2023
2.1.59 1,828 12/23/2023
2.1.58 386 12/23/2023
2.1.57 13,694 12/19/2023
2.1.56 4,565 12/18/2023
2.1.55 12,832 12/10/2023
2.1.51 6,245 12/10/2023
2.1.50 11,016 12/9/2023
2.1.49 429 12/9/2023
2.1.48 515 12/9/2023
2.1.47 446 12/9/2023
2.1.46 438 12/9/2023
2.1.45 464 12/9/2023
2.1.44 7,440 12/9/2023
2.1.43 11,584 12/6/2023
2.1.42 9,304 12/4/2023
2.1.41 5,942 12/4/2023
2.1.40 492 12/4/2023
2.1.39 893 12/4/2023
2.1.38 529 12/4/2023
2.1.37 15,724 11/23/2023
2.1.36 443 11/23/2023
2.1.35 826 11/23/2023
2.1.34 464 11/23/2023
2.1.33 2,054 11/23/2023
2.1.32 3,219 11/23/2023
2.1.31 9,511 11/20/2023
2.1.30 3,847 11/20/2023
2.1.29 6,805 11/19/2023
2.1.28 1,170 11/19/2023
2.1.27 448 11/19/2023
2.1.26 456 11/19/2023
2.1.25 446 11/19/2023
2.1.24 2,337 11/19/2023
2.1.23 10,022 11/18/2023
2.1.22 484 11/18/2023
2.1.21 3,312 11/18/2023
2.1.20 2,242 11/18/2023
2.1.19 474 11/18/2023
2.1.18 5,808 11/17/2023
2.1.17 1,471 11/17/2023
2.1.16 483 11/17/2023
2.1.15 465 11/17/2023
2.1.14 1,888 11/17/2023
2.1.13 7,976 11/17/2023
2.1.12 2,108 11/17/2023
2.1.11 462 11/17/2023
2.1.10 494 11/17/2023
2.1.9 507 11/17/2023
2.1.8 3,694 11/17/2023
2.1.7 1,667 11/16/2023
2.1.6 420 11/16/2023
2.1.5 916 11/16/2023
2.1.4 456 11/16/2023
2.0.140 5,545 11/15/2023
2.0.139 479 11/15/2023
2.0.138 463 11/15/2023
2.0.137 465 11/15/2023
2.0.136 457 11/15/2023
2.0.3 450 11/16/2023
2.0.2 465 11/16/2023
2.0.1 419 11/16/2023
1.0.135 12,261 11/10/2023
1.0.134 486 11/10/2023
1.0.133 5,836 11/9/2023
1.0.132 436 11/9/2023
1.0.131 481 11/9/2023
1.0.130 2,103 11/8/2023
1.0.129 10,525 11/6/2023
1.0.128 461 11/6/2023
1.0.127 489 11/6/2023
1.0.126 489 11/6/2023
1.0.125 3,922 11/3/2023
1.0.124 7,092 11/2/2023
1.0.123 508 11/2/2023
1.0.122 488 11/2/2023
1.0.121 460 11/2/2023
1.0.120 3,786 11/1/2023
1.0.119 19,728 10/18/2023
1.0.118 523 10/18/2023
1.0.117 510 10/18/2023
1.0.116 501 10/18/2023
1.0.115 4,250 10/17/2023
1.0.114 4,970 10/16/2023
1.0.113 511 10/16/2023
1.0.112 505 10/16/2023
1.0.111 535 10/16/2023
1.0.110 7,374 10/13/2023
1.0.109 558 10/13/2023
1.0.108 13,879 9/19/2023
1.0.107 550 9/19/2023
1.0.106 561 9/19/2023
1.0.105 505 9/19/2023
1.0.104 6,607 9/18/2023
1.0.103 547 9/18/2023
1.0.102 16,230 8/30/2023
1.0.101 604 8/30/2023
1.0.100 564 8/30/2023
1.0.99 567 8/30/2023
1.0.98 586 8/30/2023
1.0.97 12,039 8/25/2023
1.0.96 5,493 8/24/2023
1.0.95 576 8/24/2023
1.0.94 10,694 8/18/2023
1.0.93 599 8/18/2023
1.0.92 4,936 8/17/2023
1.0.91 571 8/17/2023
1.0.90 583 8/17/2023
1.0.89 18,448 8/8/2023
1.0.88 617 8/8/2023
1.0.87 5,986 8/7/2023
1.0.86 633 8/7/2023
1.0.85 609 8/7/2023
1.0.84 22,345 7/10/2023
1.0.83 680 7/10/2023
1.0.82 693 7/10/2023
1.0.81 707 7/10/2023
1.0.80 5,049 7/7/2023
1.0.79 653 7/7/2023
1.0.78 16,599 6/29/2023
1.0.77 4,577 6/28/2023
1.0.76 679 6/28/2023
1.0.75 701 6/28/2023
1.0.74 47,817 6/7/2023
1.0.73 6,121 6/7/2023
1.0.72 703 6/7/2023
1.0.71 696 6/7/2023
1.0.70 7,406 6/6/2023
1.0.69 693 6/6/2023
1.0.68 2,847 6/5/2023
1.0.67 667 6/5/2023
1.0.66 7,221 6/2/2023
1.0.65 719 6/2/2023
1.0.64 700 6/2/2023
1.0.63 28,642 5/30/2023
1.0.62 692 5/30/2023
1.0.61 8,297 5/29/2023
1.0.60 701 5/29/2023
1.0.59 6,637 5/26/2023
1.0.58 12,389 5/25/2023
1.0.57 708 5/25/2023
1.0.56 6,378 5/24/2023
1.0.55 722 5/24/2023
1.0.54 717 5/24/2023
1.0.53 698 5/24/2023
1.0.52 801 5/24/2023
1.0.51 4,244 5/23/2023
1.0.50 703 5/23/2023
1.0.49 693 5/23/2023
1.0.46 13,492 5/22/2023
1.0.45 11,015 5/18/2023
1.0.44 6,573 5/17/2023
1.0.43 688 5/17/2023
1.0.42 676 5/17/2023
1.0.41 673 5/17/2023
1.0.40 17,410 4/24/2023
1.0.39 2,402 4/24/2023
1.0.38 749 4/24/2023
1.0.37 4,074 4/21/2023
1.0.36 698 4/21/2023
1.0.35 702 4/21/2023
1.0.34 4,530 4/20/2023
1.0.33 888 4/20/2023
1.0.32 836 4/20/2023
1.0.31 4,164 4/19/2023
1.0.30 1,907 4/18/2023
1.0.29 718 4/18/2023
1.0.28 1,883 4/18/2023
1.0.27 3,362 4/17/2023
1.0.26 809 4/16/2023
1.0.25 755 4/16/2023
1.0.24 3,510 4/14/2023
1.0.23 2,560 4/13/2023
1.0.22 2,455 4/12/2023
1.0.21 735 4/12/2023
1.0.20 735 4/12/2023
1.0.19 1,761 4/11/2023
1.0.18 805 4/11/2023
1.0.17 2,586 4/11/2023
1.0.16 2,996 4/7/2023
1.0.15 3,812 4/3/2023
1.0.14 767 4/3/2023
1.0.13 770 4/3/2023
1.0.12 731 4/3/2023
1.0.11 2,056 4/1/2023
1.0.10 1,163 3/30/2023
1.0.9 903 3/26/2023
1.0.7 3,973 2/27/2023
1.0.6 797 2/26/2023
1.0.5 791 2/22/2023
1.0.4 983 2/22/2023
1.0.3 826 2/22/2023
1.0.2 1,358 2/12/2023
1.0.1 1,018 2/12/2023