Soenneker.Extensions.String 3.0.269

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

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

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

A utility library for useful environment related functionality

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.271 13,245 11/19/2024
3.0.270 50 11/19/2024
3.0.269 3,956 11/19/2024
3.0.268 55 11/19/2024
3.0.267 50 11/19/2024
3.0.266 11,491 11/19/2024
3.0.265 2,803 11/19/2024
3.0.264 26,566 11/14/2024
3.0.263 73 11/14/2024
3.0.262 2,914 11/14/2024
3.0.261 64 11/14/2024
3.0.260 64 11/14/2024
3.0.259 1,718 11/13/2024
3.0.258 70 11/13/2024
2.1.257 48,175 11/8/2024
2.1.256 14,226 11/8/2024
2.1.255 65 11/8/2024
2.1.254 61 11/8/2024
2.1.253 48,115 10/28/2024
2.1.252 110,706 10/1/2024
2.1.251 16,848 9/30/2024
2.1.250 29,469 9/27/2024
2.1.249 91 9/27/2024
2.1.248 80 9/27/2024
2.1.247 2,782 9/27/2024
2.1.246 75 9/27/2024
2.1.245 76 9/27/2024
2.1.244 79 9/27/2024
2.1.243 53,547 9/23/2024
2.1.242 756 9/23/2024
2.1.241 3,715 9/23/2024
2.1.240 83 9/23/2024
2.1.239 1,265 9/23/2024
2.1.238 88 9/23/2024
2.1.237 7,310 9/22/2024
2.1.236 28,188 9/17/2024
2.1.235 203 9/17/2024
2.1.234 89 9/17/2024
2.1.233 192 9/17/2024
2.1.232 87 9/17/2024
2.1.231 4,166 9/17/2024
2.1.230 111 9/17/2024
2.1.229 49,688 9/11/2024
2.1.228 17,030 9/11/2024
2.1.227 23,445 9/9/2024
2.1.226 9,640 9/9/2024
2.1.225 5,898 9/9/2024
2.1.224 8,310 9/9/2024
2.1.223 8,947 9/9/2024
2.1.222 90 9/9/2024
2.1.221 89 9/9/2024
2.1.220 36,393 9/5/2024
2.1.219 7,158 9/5/2024
2.1.218 93 9/5/2024
2.1.217 91 9/5/2024
2.1.216 1,175 9/5/2024
2.1.215 94 9/5/2024
2.1.214 3,877 9/5/2024
2.1.213 20,786 9/4/2024
2.1.212 49,552 8/20/2024
2.1.211 5,617 8/20/2024
2.1.210 103 8/20/2024
2.1.209 106 8/20/2024
2.1.208 4,995 8/20/2024
2.1.207 110 8/20/2024
2.1.206 99 8/20/2024
2.1.205 72,671 7/24/2024
2.1.204 5,768 7/24/2024
2.1.203 71 7/24/2024
2.1.202 26,741 7/13/2024
2.1.201 100 7/13/2024
2.1.200 15,645 7/10/2024
2.1.199 4,609 7/10/2024
2.1.198 115 7/10/2024
2.1.196 4,261 7/9/2024
2.1.194 3,319 7/9/2024
2.1.193 19,470 7/9/2024
2.1.192 5,895 7/9/2024
2.1.191 638 7/9/2024
2.1.190 92 7/9/2024
2.1.189 9,177 7/9/2024
2.1.188 2,791 7/8/2024
2.1.187 93 7/8/2024
2.1.186 115 7/8/2024
2.1.185 84 7/8/2024
2.1.184 88 7/8/2024
2.1.183 5,357 7/8/2024
2.1.182 85 7/8/2024
2.1.181 86 7/8/2024
2.1.180 529 7/8/2024
2.1.179 24,740 7/7/2024
2.1.178 3,215 7/7/2024
2.1.177 21,988 7/3/2024
2.1.176 36,971 6/14/2024
2.1.174 43,163 5/27/2024
2.1.173 3,075 5/27/2024
2.1.172 87 5/27/2024
2.1.171 20,161 5/25/2024
2.1.170 7,412 5/25/2024
2.1.169 100 5/25/2024
2.1.168 98 5/25/2024
2.1.167 4,378 5/25/2024
2.1.166 93 5/25/2024
2.1.165 96 5/25/2024
2.1.164 94 5/25/2024
2.1.163 4,074 5/25/2024
2.1.162 93 5/25/2024
2.1.161 18,901 5/22/2024
2.1.160 4,755 5/22/2024
2.1.159 2,376 5/22/2024
2.1.158 102 5/22/2024
2.1.157 100 5/22/2024
2.1.156 109 5/22/2024
2.1.155 9,769 5/22/2024
2.1.154 16,294 5/16/2024
2.1.153 47,072 4/28/2024
2.1.152 90 4/28/2024
2.1.151 7,257 4/28/2024
2.1.150 91 4/28/2024
2.1.149 102 4/28/2024
2.1.148 667 4/28/2024
2.1.147 104 4/28/2024
2.1.146 111 4/28/2024
2.1.145 5,194 4/27/2024
2.1.144 132 4/27/2024
2.1.143 97 4/27/2024
2.1.142 37,863 4/12/2024
2.1.141 120 4/12/2024
2.1.140 4,780 4/12/2024
2.1.139 126 4/12/2024
2.1.138 104 4/12/2024
2.1.137 3,122 4/12/2024
2.1.136 117 4/12/2024
2.1.135 115 4/12/2024
2.1.134 101 4/12/2024
2.1.133 25,483 4/1/2024
2.1.132 18,470 3/25/2024
2.1.131 20,065 3/18/2024
2.1.130 178 3/18/2024
2.1.129 341 3/18/2024
2.1.128 18,831 3/13/2024
2.1.127 167 3/13/2024
2.1.126 165 3/13/2024
2.1.125 1,647 3/13/2024
2.1.124 161 3/13/2024
2.1.123 166 3/13/2024
2.1.122 37,734 3/8/2024
2.1.121 15,850 3/3/2024
2.1.120 13,238 3/2/2024
2.1.119 2,048 3/1/2024
2.1.117 12,041 2/28/2024
2.1.116 22,878 2/25/2024
2.1.115 207 2/25/2024
2.1.114 18,478 2/21/2024
2.1.113 4,681 2/21/2024
2.1.112 2,793 2/21/2024
2.1.111 1,848 2/21/2024
2.1.110 229 2/21/2024
2.1.109 5,965 2/21/2024
2.1.108 220 2/21/2024
2.1.107 235 2/21/2024
2.1.106 14,914 2/20/2024
2.1.105 1,620 2/20/2024
2.1.104 9,953 2/19/2024
2.1.103 10,179 2/16/2024
2.1.102 6,891 2/16/2024
2.1.101 226 2/16/2024
2.1.100 6,551 2/16/2024
2.1.99 40,085 2/9/2024
2.1.98 36,226 2/7/2024
2.1.97 4,563 2/6/2024
2.1.96 2,767 2/6/2024
2.1.95 450 2/6/2024
2.1.94 252 2/6/2024
2.1.93 13,388 2/4/2024
2.1.92 98,516 1/15/2024
2.1.91 5,343 1/15/2024
2.1.90 362 1/15/2024
2.1.89 3,103 1/15/2024
2.1.88 309 1/15/2024
2.1.87 37,311 1/7/2024
2.1.86 7,337 1/5/2024
2.1.85 4,436 1/5/2024
2.1.84 346 1/5/2024
2.1.83 369 1/5/2024
2.1.82 5,040 1/5/2024
2.1.81 12,701 1/1/2024
2.1.80 423 1/1/2024
2.1.79 8,314 12/28/2023
2.1.78 4,224 12/28/2023
2.1.77 4,128 12/27/2023
2.1.76 398 12/27/2023
2.1.75 400 12/27/2023
2.1.74 4,982 12/27/2023
2.1.73 372 12/27/2023
2.1.72 396 12/27/2023
2.1.71 15,652 12/25/2023
2.1.70 855 12/25/2023
2.1.69 409 12/25/2023
2.1.68 409 12/25/2023
2.1.67 4,694 12/25/2023
2.1.66 12,690 12/24/2023
2.1.65 7,651 12/23/2023
2.1.64 2,064 12/23/2023
2.1.63 370 12/23/2023
2.1.62 5,483 12/23/2023
2.1.61 402 12/23/2023
2.1.60 366 12/23/2023
2.1.59 1,811 12/23/2023
2.1.58 375 12/23/2023
2.1.57 13,645 12/19/2023
2.1.56 4,541 12/18/2023
2.1.55 12,799 12/10/2023
2.1.51 6,231 12/10/2023
2.1.50 10,993 12/9/2023
2.1.49 418 12/9/2023
2.1.48 504 12/9/2023
2.1.47 434 12/9/2023
2.1.46 429 12/9/2023
2.1.45 454 12/9/2023
2.1.44 7,419 12/9/2023
2.1.43 11,552 12/6/2023
2.1.42 9,288 12/4/2023
2.1.41 5,932 12/4/2023
2.1.40 463 12/4/2023
2.1.39 882 12/4/2023
2.1.38 501 12/4/2023
2.1.37 15,693 11/23/2023
2.1.36 430 11/23/2023
2.1.35 799 11/23/2023
2.1.34 453 11/23/2023
2.1.33 2,043 11/23/2023
2.1.32 3,205 11/23/2023
2.1.31 9,489 11/20/2023
2.1.30 3,836 11/20/2023
2.1.29 6,794 11/19/2023
2.1.28 1,158 11/19/2023
2.1.27 437 11/19/2023
2.1.26 447 11/19/2023
2.1.25 421 11/19/2023
2.1.24 2,324 11/19/2023
2.1.23 10,011 11/18/2023
2.1.22 467 11/18/2023
2.1.21 3,298 11/18/2023
2.1.20 2,228 11/18/2023
2.1.19 446 11/18/2023
2.1.18 5,793 11/17/2023
2.1.17 1,460 11/17/2023
2.1.16 472 11/17/2023
2.1.15 454 11/17/2023
2.1.14 1,876 11/17/2023
2.1.13 7,967 11/17/2023
2.1.12 2,099 11/17/2023
2.1.11 449 11/17/2023
2.1.10 483 11/17/2023
2.1.9 496 11/17/2023
2.1.8 3,678 11/17/2023
2.1.7 1,655 11/16/2023
2.1.6 407 11/16/2023
2.1.5 905 11/16/2023
2.1.4 445 11/16/2023
2.0.140 5,535 11/15/2023
2.0.139 468 11/15/2023
2.0.138 449 11/15/2023
2.0.137 452 11/15/2023
2.0.136 444 11/15/2023
2.0.3 429 11/16/2023
2.0.2 452 11/16/2023
2.0.1 406 11/16/2023
1.0.135 12,236 11/10/2023
1.0.134 474 11/10/2023
1.0.133 5,816 11/9/2023
1.0.132 424 11/9/2023
1.0.131 470 11/9/2023
1.0.130 2,092 11/8/2023
1.0.129 10,508 11/6/2023
1.0.128 448 11/6/2023
1.0.127 477 11/6/2023
1.0.126 480 11/6/2023
1.0.125 3,913 11/3/2023
1.0.124 7,081 11/2/2023
1.0.123 492 11/2/2023
1.0.122 477 11/2/2023
1.0.121 449 11/2/2023
1.0.120 3,766 11/1/2023
1.0.119 19,710 10/18/2023
1.0.118 512 10/18/2023
1.0.117 499 10/18/2023
1.0.116 489 10/18/2023
1.0.115 4,230 10/17/2023
1.0.114 4,958 10/16/2023
1.0.113 500 10/16/2023
1.0.112 494 10/16/2023
1.0.111 526 10/16/2023
1.0.110 7,345 10/13/2023
1.0.109 547 10/13/2023
1.0.108 13,840 9/19/2023
1.0.107 536 9/19/2023
1.0.106 535 9/19/2023
1.0.105 494 9/19/2023
1.0.104 6,595 9/18/2023
1.0.103 536 9/18/2023
1.0.102 16,202 8/30/2023
1.0.101 593 8/30/2023
1.0.100 553 8/30/2023
1.0.99 556 8/30/2023
1.0.98 575 8/30/2023
1.0.97 11,999 8/25/2023
1.0.96 5,477 8/24/2023
1.0.95 565 8/24/2023
1.0.94 10,681 8/18/2023
1.0.93 588 8/18/2023
1.0.92 4,924 8/17/2023
1.0.91 560 8/17/2023
1.0.90 572 8/17/2023
1.0.89 18,436 8/8/2023
1.0.88 591 8/8/2023
1.0.87 5,974 8/7/2023
1.0.86 621 8/7/2023
1.0.85 591 8/7/2023
1.0.84 22,328 7/10/2023
1.0.83 669 7/10/2023
1.0.82 682 7/10/2023
1.0.81 696 7/10/2023
1.0.80 5,033 7/7/2023
1.0.79 628 7/7/2023
1.0.78 16,543 6/29/2023
1.0.77 4,557 6/28/2023
1.0.76 655 6/28/2023
1.0.75 691 6/28/2023
1.0.74 47,781 6/7/2023
1.0.73 6,105 6/7/2023
1.0.72 694 6/7/2023
1.0.71 687 6/7/2023
1.0.70 7,393 6/6/2023
1.0.69 684 6/6/2023
1.0.68 2,836 6/5/2023
1.0.67 656 6/5/2023
1.0.66 7,212 6/2/2023
1.0.65 709 6/2/2023
1.0.64 689 6/2/2023
1.0.63 28,633 5/30/2023
1.0.62 677 5/30/2023
1.0.61 8,285 5/29/2023
1.0.60 690 5/29/2023
1.0.59 6,626 5/26/2023
1.0.58 12,380 5/25/2023
1.0.57 697 5/25/2023
1.0.56 6,365 5/24/2023
1.0.55 712 5/24/2023
1.0.54 708 5/24/2023
1.0.53 686 5/24/2023
1.0.52 790 5/24/2023
1.0.51 4,228 5/23/2023
1.0.50 692 5/23/2023
1.0.49 684 5/23/2023
1.0.46 13,449 5/22/2023
1.0.45 10,971 5/18/2023
1.0.44 6,563 5/17/2023
1.0.43 678 5/17/2023
1.0.42 666 5/17/2023
1.0.41 663 5/17/2023
1.0.40 17,383 4/24/2023
1.0.39 2,391 4/24/2023
1.0.38 739 4/24/2023
1.0.37 4,065 4/21/2023
1.0.36 689 4/21/2023
1.0.35 693 4/21/2023
1.0.34 4,513 4/20/2023
1.0.33 879 4/20/2023
1.0.32 827 4/20/2023
1.0.31 4,155 4/19/2023
1.0.30 1,883 4/18/2023
1.0.29 707 4/18/2023
1.0.28 1,874 4/18/2023
1.0.27 3,353 4/17/2023
1.0.26 800 4/16/2023
1.0.25 742 4/16/2023
1.0.24 3,501 4/14/2023
1.0.23 2,551 4/13/2023
1.0.22 2,446 4/12/2023
1.0.21 726 4/12/2023
1.0.20 726 4/12/2023
1.0.19 1,752 4/11/2023
1.0.18 793 4/11/2023
1.0.17 2,577 4/11/2023
1.0.16 2,987 4/7/2023
1.0.15 3,802 4/3/2023
1.0.14 758 4/3/2023
1.0.13 761 4/3/2023
1.0.12 722 4/3/2023
1.0.11 2,047 4/1/2023
1.0.10 1,153 3/30/2023
1.0.9 883 3/26/2023
1.0.7 3,964 2/27/2023
1.0.6 788 2/26/2023
1.0.5 780 2/22/2023
1.0.4 972 2/22/2023
1.0.3 800 2/22/2023
1.0.2 1,349 2/12/2023
1.0.1 1,002 2/12/2023