Soenneker.Extensions.String 3.0.384

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

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

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 highly optimized library of string extension methods designed to improve performance, readability, and efficiency in .NET applications. This library is ideal for developers looking to streamline common string operations while adhering to best practices and achieving maximum performance.

Features

  • High Performance: All methods are optimized for speed and low memory usage, ensuring top-notch performance in critical applications.
  • Comprehensive Functionality: Includes a wide range of utility methods for common string operations, such as trimming, splitting, joining, and formatting.
  • Readability-First: Enhances code clarity with intuitive method names and streamlined syntax.
  • Error-Resilient: Methods are built to handle edge cases gracefully, minimizing potential bugs and exceptions.
  • Lightweight: Minimal overhead and dependencies, making it perfect for high-performance applications.

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

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.393 0 1/20/2025
3.0.392 0 1/20/2025
3.0.391 0 1/20/2025
3.0.390 0 1/20/2025
3.0.389 0 1/20/2025
3.0.388 82 1/20/2025
3.0.387 21 1/20/2025
3.0.386 22 1/20/2025
3.0.385 512 1/20/2025
3.0.384 20 1/20/2025
3.0.383 19 1/20/2025
3.0.382 20 1/20/2025
3.0.381 8,951 1/19/2025
3.0.380 106 1/19/2025
3.0.379 27 1/19/2025
3.0.378 7,475 1/18/2025
3.0.377 7,421 1/16/2025
3.0.376 7,265 1/16/2025
3.0.375 6,595 1/16/2025
3.0.374 6,903 1/15/2025
3.0.373 3,452 1/15/2025
3.0.372 1,631 1/15/2025
3.0.371 5,079 1/15/2025
3.0.370 3,297 1/15/2025
3.0.369 1,358 1/14/2025
3.0.368 856 1/14/2025
3.0.367 231 1/14/2025
3.0.366 63 1/14/2025
3.0.365 31 1/14/2025
3.0.364 1,339 1/14/2025
3.0.363 818 1/14/2025
3.0.362 21 1/14/2025
3.0.361 1,429 1/14/2025
3.0.360 13,824 1/12/2025
3.0.359 14,236 1/10/2025
3.0.358 3,888 1/10/2025
3.0.357 60 1/10/2025
3.0.356 63 1/10/2025
3.0.355 3,234 1/10/2025
3.0.354 61 1/10/2025
3.0.353 73 1/10/2025
3.0.352 68 1/10/2025
3.0.351 23,582 1/2/2025
3.0.350 97 1/2/2025
3.0.349 90 1/2/2025
3.0.348 6,363 1/2/2025
3.0.347 100 1/2/2025
3.0.346 95 1/2/2025
3.0.345 1,470 1/2/2025
3.0.344 16,605 1/1/2025
3.0.343 90 1/1/2025
3.0.342 109 1/1/2025
3.0.341 542 12/31/2024
3.0.340 94 12/31/2024
3.0.339 90 12/31/2024
3.0.338 2,048 12/31/2024
3.0.337 113 12/31/2024
3.0.336 100 12/31/2024
3.0.335 129 12/31/2024
3.0.334 7,789 12/31/2024
3.0.333 21,812 12/31/2024
3.0.332 80 12/31/2024
3.0.331 80 12/31/2024
3.0.330 9,737 12/31/2024
3.0.329 94 12/31/2024
3.0.328 90 12/31/2024
3.0.327 4,271 12/31/2024
3.0.326 39,974 12/24/2024
3.0.325 84 12/24/2024
3.0.324 84 12/24/2024
3.0.323 6,769 12/24/2024
3.0.322 90 12/24/2024
3.0.321 86 12/24/2024
3.0.320 1,585 12/24/2024
3.0.319 40,386 12/22/2024
3.0.318 455 12/22/2024
3.0.317 90 12/22/2024
3.0.316 6,671 12/21/2024
3.0.315 79 12/21/2024
3.0.314 1,013 12/21/2024
3.0.313 9,702 12/21/2024
3.0.312 86 12/21/2024
3.0.311 3,357 12/21/2024
3.0.310 5,017 12/21/2024
3.0.309 90 12/21/2024
3.0.308 7,185 12/21/2024
3.0.307 82 12/21/2024
3.0.306 581 12/21/2024
3.0.305 5,071 12/21/2024
3.0.304 81 12/21/2024
3.0.303 7,261 12/20/2024
3.0.302 3,779 12/20/2024
3.0.301 83 12/20/2024
3.0.300 14,544 12/19/2024
3.0.299 1,452 12/19/2024
3.0.298 632 12/18/2024
3.0.297 84 12/18/2024
3.0.296 223 12/18/2024
3.0.295 25,065 12/17/2024
3.0.294 3,838 12/17/2024
3.0.293 97 12/17/2024
3.0.292 346 12/16/2024
3.0.291 96 12/16/2024
3.0.290 88 12/16/2024
3.0.289 95 12/16/2024
3.0.288 56,236 12/5/2024
3.0.287 24,163 12/4/2024
3.0.286 8,545 12/4/2024
3.0.285 5,633 12/4/2024
3.0.284 3,348 12/4/2024
3.0.283 7,008 12/4/2024
3.0.282 193 12/4/2024
3.0.281 14,151 12/3/2024
3.0.280 115 12/3/2024
3.0.279 6,760 12/3/2024
3.0.278 4,084 12/2/2024
3.0.277 95 12/2/2024
3.0.276 6,121 12/2/2024
3.0.275 14,462 12/1/2024
3.0.274 5,858 12/1/2024
3.0.273 104 12/1/2024
3.0.272 111 12/1/2024
3.0.271 39,423 11/19/2024
3.0.270 114 11/19/2024
3.0.269 5,377 11/19/2024
3.0.268 124 11/19/2024
3.0.267 99 11/19/2024
3.0.266 14,250 11/19/2024
3.0.265 3,742 11/19/2024
3.0.264 28,089 11/14/2024
3.0.263 116 11/14/2024
3.0.262 2,974 11/14/2024
3.0.261 109 11/14/2024
3.0.260 107 11/14/2024
3.0.259 1,766 11/13/2024
3.0.258 113 11/13/2024
2.1.257 49,199 11/8/2024
2.1.256 14,259 11/8/2024
2.1.255 87 11/8/2024
2.1.254 84 11/8/2024
2.1.253 48,193 10/28/2024
2.1.252 111,591 10/1/2024
2.1.251 16,860 9/30/2024
2.1.250 29,760 9/27/2024
2.1.249 104 9/27/2024
2.1.248 91 9/27/2024
2.1.247 2,795 9/27/2024
2.1.246 89 9/27/2024
2.1.245 89 9/27/2024
2.1.244 91 9/27/2024
2.1.243 53,788 9/23/2024
2.1.242 769 9/23/2024
2.1.241 3,738 9/23/2024
2.1.240 95 9/23/2024
2.1.239 1,276 9/23/2024
2.1.238 100 9/23/2024
2.1.237 7,333 9/22/2024
2.1.236 28,254 9/17/2024
2.1.235 215 9/17/2024
2.1.234 103 9/17/2024
2.1.233 204 9/17/2024
2.1.232 100 9/17/2024
2.1.231 4,183 9/17/2024
2.1.230 124 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,627 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 120 8/20/2024
2.1.206 111 8/20/2024
2.1.205 72,725 7/24/2024
2.1.204 5,777 7/24/2024
2.1.203 83 7/24/2024
2.1.202 27,009 7/13/2024
2.1.201 116 7/13/2024
2.1.200 15,676 7/10/2024
2.1.199 4,623 7/10/2024
2.1.198 128 7/10/2024
2.1.196 4,277 7/9/2024
2.1.194 3,333 7/9/2024
2.1.193 19,503 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,788 7/7/2024
2.1.178 3,241 7/7/2024
2.1.177 22,024 7/3/2024
2.1.176 37,107 6/14/2024
2.1.174 43,218 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 104 5/25/2024
2.1.165 108 5/25/2024
2.1.164 124 5/25/2024
2.1.163 4,103 5/25/2024
2.1.162 104 5/25/2024
2.1.161 18,929 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,109 4/28/2024
2.1.152 101 4/28/2024
2.1.151 7,315 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,954 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,883 4/1/2024
2.1.132 18,521 3/25/2024
2.1.131 20,111 3/18/2024
2.1.130 191 3/18/2024
2.1.129 352 3/18/2024
2.1.128 18,849 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,784 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,064 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,975 2/21/2024
2.1.108 234 2/21/2024
2.1.107 249 2/21/2024
2.1.106 14,940 2/20/2024
2.1.105 1,635 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,272 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,594 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,823 12/23/2023
2.1.58 386 12/23/2023
2.1.57 13,689 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,579 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 462 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,334 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,829 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,517 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,090 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,784 11/1/2023
1.0.119 19,721 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,575 6/28/2023
1.0.76 677 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