Soenneker.Extensions.String 2.1.184

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 2.1.184                
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.184                
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="2.1.184" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Extensions.String --version 2.1.184                
#r "nuget: Soenneker.Extensions.String, 2.1.184"                
#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=2.1.184

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

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 net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (19)

Showing the top 5 NuGet packages that depend on Soenneker.Extensions.String:

Package Downloads
Soenneker.Utils.MemoryStream

An easy modern MemoryStream utility

Soenneker.Extensions.Configuration

A collection of helpful IConfiguration extension methods

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
2.1.250 6,344 9/27/2024
2.1.249 37 9/27/2024
2.1.248 34 9/27/2024
2.1.247 1,115 9/27/2024
2.1.246 31 9/27/2024
2.1.245 30 9/27/2024
2.1.244 31 9/27/2024
2.1.243 34,709 9/23/2024
2.1.242 736 9/23/2024
2.1.241 3,651 9/23/2024
2.1.240 69 9/23/2024
2.1.239 1,243 9/23/2024
2.1.238 74 9/23/2024
2.1.237 7,229 9/22/2024
2.1.236 28,045 9/17/2024
2.1.235 190 9/17/2024
2.1.234 72 9/17/2024
2.1.233 179 9/17/2024
2.1.232 74 9/17/2024
2.1.231 4,136 9/17/2024
2.1.230 94 9/17/2024
2.1.229 48,736 9/11/2024
2.1.228 16,975 9/11/2024
2.1.227 23,327 9/9/2024
2.1.226 9,601 9/9/2024
2.1.225 5,877 9/9/2024
2.1.224 8,277 9/9/2024
2.1.223 8,910 9/9/2024
2.1.222 80 9/9/2024
2.1.221 78 9/9/2024
2.1.220 36,249 9/5/2024
2.1.219 7,124 9/5/2024
2.1.218 82 9/5/2024
2.1.217 80 9/5/2024
2.1.216 1,149 9/5/2024
2.1.215 83 9/5/2024
2.1.214 3,865 9/5/2024
2.1.213 20,745 9/4/2024
2.1.212 49,371 8/20/2024
2.1.211 5,575 8/20/2024
2.1.210 95 8/20/2024
2.1.209 99 8/20/2024
2.1.208 4,979 8/20/2024
2.1.207 103 8/20/2024
2.1.206 92 8/20/2024
2.1.205 72,355 7/24/2024
2.1.204 5,720 7/24/2024
2.1.203 65 7/24/2024
2.1.202 26,536 7/13/2024
2.1.201 96 7/13/2024
2.1.200 15,599 7/10/2024
2.1.199 4,598 7/10/2024
2.1.198 112 7/10/2024
2.1.196 4,255 7/9/2024
2.1.194 3,300 7/9/2024
2.1.193 19,413 7/9/2024
2.1.192 5,871 7/9/2024
2.1.191 635 7/9/2024
2.1.190 90 7/9/2024
2.1.189 9,145 7/9/2024
2.1.188 2,783 7/8/2024
2.1.187 91 7/8/2024
2.1.186 113 7/8/2024
2.1.185 82 7/8/2024
2.1.184 86 7/8/2024
2.1.183 5,329 7/8/2024
2.1.182 81 7/8/2024
2.1.181 83 7/8/2024
2.1.180 525 7/8/2024
2.1.179 24,626 7/7/2024
2.1.178 3,207 7/7/2024
2.1.177 21,894 7/3/2024
2.1.176 36,776 6/14/2024
2.1.174 42,980 5/27/2024
2.1.173 3,038 5/27/2024
2.1.172 83 5/27/2024
2.1.171 20,033 5/25/2024
2.1.170 7,363 5/25/2024
2.1.169 97 5/25/2024
2.1.168 95 5/25/2024
2.1.167 4,356 5/25/2024
2.1.166 90 5/25/2024
2.1.165 93 5/25/2024
2.1.164 91 5/25/2024
2.1.163 4,052 5/25/2024
2.1.162 90 5/25/2024
2.1.161 18,848 5/22/2024
2.1.160 4,752 5/22/2024
2.1.159 2,353 5/22/2024
2.1.158 100 5/22/2024
2.1.157 89 5/22/2024
2.1.156 107 5/22/2024
2.1.155 9,707 5/22/2024
2.1.154 16,221 5/16/2024
2.1.153 46,833 4/28/2024
2.1.152 88 4/28/2024
2.1.151 7,168 4/28/2024
2.1.150 89 4/28/2024
2.1.149 100 4/28/2024
2.1.148 662 4/28/2024
2.1.147 99 4/28/2024
2.1.146 108 4/28/2024
2.1.145 5,170 4/27/2024
2.1.144 117 4/27/2024
2.1.143 94 4/27/2024
2.1.142 37,622 4/12/2024
2.1.141 118 4/12/2024
2.1.140 4,737 4/12/2024
2.1.139 124 4/12/2024
2.1.138 102 4/12/2024
2.1.137 3,106 4/12/2024
2.1.136 115 4/12/2024
2.1.135 100 4/12/2024
2.1.134 99 4/12/2024
2.1.133 24,960 4/1/2024
2.1.132 18,297 3/25/2024
2.1.131 19,850 3/18/2024
2.1.130 176 3/18/2024
2.1.129 336 3/18/2024
2.1.128 18,706 3/13/2024
2.1.127 163 3/13/2024
2.1.126 161 3/13/2024
2.1.125 1,637 3/13/2024
2.1.124 157 3/13/2024
2.1.123 164 3/13/2024
2.1.122 37,505 3/8/2024
2.1.121 15,756 3/3/2024
2.1.120 13,135 3/2/2024
2.1.119 2,046 3/1/2024
2.1.117 11,965 2/28/2024
2.1.116 22,717 2/25/2024
2.1.115 203 2/25/2024
2.1.114 18,379 2/21/2024
2.1.113 4,670 2/21/2024
2.1.112 2,755 2/21/2024
2.1.111 1,845 2/21/2024
2.1.110 225 2/21/2024
2.1.109 5,925 2/21/2024
2.1.108 218 2/21/2024
2.1.107 233 2/21/2024
2.1.106 14,832 2/20/2024
2.1.105 1,617 2/20/2024
2.1.104 9,910 2/19/2024
2.1.103 10,135 2/16/2024
2.1.102 6,849 2/16/2024
2.1.101 223 2/16/2024
2.1.100 6,520 2/16/2024
2.1.99 39,853 2/9/2024
2.1.98 36,027 2/7/2024
2.1.97 4,536 2/6/2024
2.1.96 2,753 2/6/2024
2.1.95 433 2/6/2024
2.1.94 244 2/6/2024
2.1.93 13,336 2/4/2024
2.1.92 98,181 1/15/2024
2.1.91 5,324 1/15/2024
2.1.90 357 1/15/2024
2.1.89 3,095 1/15/2024
2.1.88 307 1/15/2024
2.1.87 37,108 1/7/2024
2.1.86 7,290 1/5/2024
2.1.85 4,401 1/5/2024
2.1.84 341 1/5/2024
2.1.83 366 1/5/2024
2.1.82 4,996 1/5/2024
2.1.81 12,544 1/1/2024
2.1.80 420 1/1/2024
2.1.79 8,238 12/28/2023
2.1.78 4,178 12/28/2023
2.1.77 4,085 12/27/2023
2.1.76 395 12/27/2023
2.1.75 396 12/27/2023
2.1.74 4,950 12/27/2023
2.1.73 368 12/27/2023
2.1.72 383 12/27/2023
2.1.71 15,562 12/25/2023
2.1.70 853 12/25/2023
2.1.69 406 12/25/2023
2.1.68 405 12/25/2023
2.1.67 4,678 12/25/2023
2.1.66 12,602 12/24/2023
2.1.65 7,617 12/23/2023
2.1.64 2,049 12/23/2023
2.1.63 368 12/23/2023
2.1.62 5,449 12/23/2023
2.1.61 398 12/23/2023
2.1.60 363 12/23/2023
2.1.59 1,795 12/23/2023
2.1.58 372 12/23/2023
2.1.57 13,570 12/19/2023
2.1.56 4,532 12/18/2023
2.1.55 12,744 12/10/2023
2.1.51 6,209 12/10/2023
2.1.50 10,939 12/9/2023
2.1.49 415 12/9/2023
2.1.48 500 12/9/2023
2.1.47 432 12/9/2023
2.1.46 427 12/9/2023
2.1.45 449 12/9/2023
2.1.44 7,369 12/9/2023
2.1.43 11,478 12/6/2023
2.1.42 9,249 12/4/2023
2.1.41 5,889 12/4/2023
2.1.40 459 12/4/2023
2.1.39 874 12/4/2023
2.1.38 498 12/4/2023
2.1.37 15,610 11/23/2023
2.1.36 427 11/23/2023
2.1.35 795 11/23/2023
2.1.34 450 11/23/2023
2.1.33 2,032 11/23/2023
2.1.32 3,181 11/23/2023
2.1.31 9,456 11/20/2023
2.1.30 3,809 11/20/2023
2.1.29 6,750 11/19/2023
2.1.28 1,114 11/19/2023
2.1.27 434 11/19/2023
2.1.26 443 11/19/2023
2.1.25 418 11/19/2023
2.1.24 2,310 11/19/2023
2.1.23 9,926 11/18/2023
2.1.22 465 11/18/2023
2.1.21 3,281 11/18/2023
2.1.20 2,222 11/18/2023
2.1.19 441 11/18/2023
2.1.18 5,739 11/17/2023
2.1.17 1,443 11/17/2023
2.1.16 470 11/17/2023
2.1.15 452 11/17/2023
2.1.14 1,858 11/17/2023
2.1.13 7,930 11/17/2023
2.1.12 2,049 11/17/2023
2.1.11 446 11/17/2023
2.1.10 445 11/17/2023
2.1.9 489 11/17/2023
2.1.8 3,585 11/17/2023
2.1.7 1,633 11/16/2023
2.1.6 405 11/16/2023
2.1.5 893 11/16/2023
2.1.4 429 11/16/2023
2.0.140 5,478 11/15/2023
2.0.139 465 11/15/2023
2.0.138 433 11/15/2023
2.0.137 446 11/15/2023
2.0.136 441 11/15/2023
2.0.3 426 11/16/2023
2.0.2 449 11/16/2023
2.0.1 404 11/16/2023
1.0.135 12,185 11/10/2023
1.0.134 458 11/10/2023
1.0.133 5,808 11/9/2023
1.0.132 419 11/9/2023
1.0.131 451 11/9/2023
1.0.130 2,089 11/8/2023
1.0.129 10,472 11/6/2023
1.0.128 428 11/6/2023
1.0.127 475 11/6/2023
1.0.126 478 11/6/2023
1.0.125 3,878 11/3/2023
1.0.124 7,065 11/2/2023
1.0.123 487 11/2/2023
1.0.122 475 11/2/2023
1.0.121 446 11/2/2023
1.0.120 3,751 11/1/2023
1.0.119 19,604 10/18/2023
1.0.118 510 10/18/2023
1.0.117 497 10/18/2023
1.0.116 487 10/18/2023
1.0.115 4,209 10/17/2023
1.0.114 4,948 10/16/2023
1.0.113 498 10/16/2023
1.0.112 491 10/16/2023
1.0.111 524 10/16/2023
1.0.110 7,338 10/13/2023
1.0.109 543 10/13/2023
1.0.108 13,755 9/19/2023
1.0.107 533 9/19/2023
1.0.106 532 9/19/2023
1.0.105 491 9/19/2023
1.0.104 6,588 9/18/2023
1.0.103 532 9/18/2023
1.0.102 16,166 8/30/2023
1.0.101 589 8/30/2023
1.0.100 550 8/30/2023
1.0.99 553 8/30/2023
1.0.98 572 8/30/2023
1.0.97 11,984 8/25/2023
1.0.96 5,460 8/24/2023
1.0.95 562 8/24/2023
1.0.94 10,643 8/18/2023
1.0.93 570 8/18/2023
1.0.92 4,913 8/17/2023
1.0.91 557 8/17/2023
1.0.90 569 8/17/2023
1.0.89 18,389 8/8/2023
1.0.88 573 8/8/2023
1.0.87 5,952 8/7/2023
1.0.86 601 8/7/2023
1.0.85 587 8/7/2023
1.0.84 22,274 7/10/2023
1.0.83 649 7/10/2023
1.0.82 679 7/10/2023
1.0.81 693 7/10/2023
1.0.80 5,023 7/7/2023
1.0.79 625 7/7/2023
1.0.78 16,510 6/29/2023
1.0.77 4,550 6/28/2023
1.0.76 651 6/28/2023
1.0.75 688 6/28/2023
1.0.74 47,661 6/7/2023
1.0.73 6,082 6/7/2023
1.0.72 691 6/7/2023
1.0.71 684 6/7/2023
1.0.70 7,375 6/6/2023
1.0.69 675 6/6/2023
1.0.68 2,828 6/5/2023
1.0.67 653 6/5/2023
1.0.66 7,195 6/2/2023
1.0.65 688 6/2/2023
1.0.64 686 6/2/2023
1.0.63 28,568 5/30/2023
1.0.62 675 5/30/2023
1.0.61 8,275 5/29/2023
1.0.60 687 5/29/2023
1.0.59 6,624 5/26/2023
1.0.58 12,331 5/25/2023
1.0.57 694 5/25/2023
1.0.56 6,337 5/24/2023
1.0.55 710 5/24/2023
1.0.54 706 5/24/2023
1.0.53 684 5/24/2023
1.0.52 787 5/24/2023
1.0.51 4,208 5/23/2023
1.0.50 690 5/23/2023
1.0.49 681 5/23/2023
1.0.46 13,394 5/22/2023
1.0.45 10,929 5/18/2023
1.0.44 6,533 5/17/2023
1.0.43 674 5/17/2023
1.0.42 662 5/17/2023
1.0.41 660 5/17/2023
1.0.40 17,333 4/24/2023
1.0.39 2,388 4/24/2023
1.0.38 735 4/24/2023
1.0.37 4,063 4/21/2023
1.0.36 687 4/21/2023
1.0.35 691 4/21/2023
1.0.34 4,501 4/20/2023
1.0.33 876 4/20/2023
1.0.32 824 4/20/2023
1.0.31 4,150 4/19/2023
1.0.30 1,881 4/18/2023
1.0.29 705 4/18/2023
1.0.28 1,872 4/18/2023
1.0.27 3,346 4/17/2023
1.0.26 789 4/16/2023
1.0.25 740 4/16/2023
1.0.24 3,495 4/14/2023
1.0.23 2,547 4/13/2023
1.0.22 2,444 4/12/2023
1.0.21 724 4/12/2023
1.0.20 722 4/12/2023
1.0.19 1,748 4/11/2023
1.0.18 790 4/11/2023
1.0.17 2,575 4/11/2023
1.0.16 2,983 4/7/2023
1.0.15 3,799 4/3/2023
1.0.14 756 4/3/2023
1.0.13 743 4/3/2023
1.0.12 718 4/3/2023
1.0.11 2,045 4/1/2023
1.0.10 1,150 3/30/2023
1.0.9 880 3/26/2023
1.0.7 3,951 2/27/2023
1.0.6 768 2/26/2023
1.0.5 777 2/22/2023
1.0.4 970 2/22/2023
1.0.3 797 2/22/2023
1.0.2 1,347 2/12/2023
1.0.1 1,000 2/12/2023