Soenneker.Extensions.String 3.0.271

Prefix Reserved
dotnet add package Soenneker.Extensions.String --version 3.0.271                
NuGet\Install-Package Soenneker.Extensions.String -Version 3.0.271                
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.271" />                
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.271                
#r "nuget: Soenneker.Extensions.String, 3.0.271"                
#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.271

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

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 12,599 11/19/2024
3.0.270 48 11/19/2024
3.0.269 3,920 11/19/2024
3.0.268 53 11/19/2024
3.0.267 48 11/19/2024
3.0.266 11,406 11/19/2024
3.0.265 2,779 11/19/2024
3.0.264 26,340 11/14/2024
3.0.263 72 11/14/2024
3.0.262 2,893 11/14/2024
3.0.261 63 11/14/2024
3.0.260 63 11/14/2024
3.0.259 1,717 11/13/2024
3.0.258 69 11/13/2024
2.1.257 48,122 11/8/2024
2.1.256 14,225 11/8/2024
2.1.255 64 11/8/2024
2.1.254 60 11/8/2024
2.1.253 48,112 10/28/2024
2.1.252 110,688 10/1/2024
2.1.251 16,847 9/30/2024
2.1.250 29,464 9/27/2024
2.1.249 90 9/27/2024
2.1.248 79 9/27/2024
2.1.247 2,781 9/27/2024
2.1.246 74 9/27/2024
2.1.245 75 9/27/2024
2.1.244 78 9/27/2024
2.1.243 53,545 9/23/2024
2.1.242 755 9/23/2024
2.1.241 3,714 9/23/2024
2.1.240 82 9/23/2024
2.1.239 1,264 9/23/2024
2.1.238 87 9/23/2024
2.1.237 7,309 9/22/2024
2.1.236 28,187 9/17/2024
2.1.235 202 9/17/2024
2.1.234 88 9/17/2024
2.1.233 191 9/17/2024
2.1.232 86 9/17/2024
2.1.231 4,165 9/17/2024
2.1.230 110 9/17/2024
2.1.229 49,668 9/11/2024
2.1.228 17,029 9/11/2024
2.1.227 23,444 9/9/2024
2.1.226 9,639 9/9/2024
2.1.225 5,897 9/9/2024
2.1.224 8,309 9/9/2024
2.1.223 8,946 9/9/2024
2.1.222 89 9/9/2024
2.1.221 88 9/9/2024
2.1.220 36,392 9/5/2024
2.1.219 7,157 9/5/2024
2.1.218 92 9/5/2024
2.1.217 90 9/5/2024
2.1.216 1,174 9/5/2024
2.1.215 93 9/5/2024
2.1.214 3,876 9/5/2024
2.1.213 20,785 9/4/2024
2.1.212 49,551 8/20/2024
2.1.211 5,616 8/20/2024
2.1.210 102 8/20/2024
2.1.209 105 8/20/2024
2.1.208 4,994 8/20/2024
2.1.207 109 8/20/2024
2.1.206 98 8/20/2024
2.1.205 72,670 7/24/2024
2.1.204 5,767 7/24/2024
2.1.203 70 7/24/2024
2.1.202 26,732 7/13/2024
2.1.201 99 7/13/2024
2.1.200 15,644 7/10/2024
2.1.199 4,608 7/10/2024
2.1.198 114 7/10/2024
2.1.196 4,260 7/9/2024
2.1.194 3,318 7/9/2024
2.1.193 19,469 7/9/2024
2.1.192 5,894 7/9/2024
2.1.191 637 7/9/2024
2.1.190 91 7/9/2024
2.1.189 9,176 7/9/2024
2.1.188 2,790 7/8/2024
2.1.187 92 7/8/2024
2.1.186 114 7/8/2024
2.1.185 83 7/8/2024
2.1.184 87 7/8/2024
2.1.183 5,356 7/8/2024
2.1.182 84 7/8/2024
2.1.181 85 7/8/2024
2.1.180 528 7/8/2024
2.1.179 24,739 7/7/2024
2.1.178 3,214 7/7/2024
2.1.177 21,987 7/3/2024
2.1.176 36,968 6/14/2024
2.1.174 43,162 5/27/2024
2.1.173 3,074 5/27/2024
2.1.172 86 5/27/2024
2.1.171 20,160 5/25/2024
2.1.170 7,411 5/25/2024
2.1.169 99 5/25/2024
2.1.168 97 5/25/2024
2.1.167 4,377 5/25/2024
2.1.166 92 5/25/2024
2.1.165 95 5/25/2024
2.1.164 93 5/25/2024
2.1.163 4,073 5/25/2024
2.1.162 92 5/25/2024
2.1.161 18,900 5/22/2024
2.1.160 4,754 5/22/2024
2.1.159 2,375 5/22/2024
2.1.158 101 5/22/2024
2.1.157 99 5/22/2024
2.1.156 108 5/22/2024
2.1.155 9,768 5/22/2024
2.1.154 16,293 5/16/2024
2.1.153 47,071 4/28/2024
2.1.152 89 4/28/2024
2.1.151 7,255 4/28/2024
2.1.150 90 4/28/2024
2.1.149 101 4/28/2024
2.1.148 666 4/28/2024
2.1.147 103 4/28/2024
2.1.146 110 4/28/2024
2.1.145 5,193 4/27/2024
2.1.144 131 4/27/2024
2.1.143 96 4/27/2024
2.1.142 37,862 4/12/2024
2.1.141 119 4/12/2024
2.1.140 4,779 4/12/2024
2.1.139 125 4/12/2024
2.1.138 103 4/12/2024
2.1.137 3,121 4/12/2024
2.1.136 116 4/12/2024
2.1.135 114 4/12/2024
2.1.134 100 4/12/2024
2.1.133 25,475 4/1/2024
2.1.132 18,469 3/25/2024
2.1.131 20,064 3/18/2024
2.1.130 177 3/18/2024
2.1.129 340 3/18/2024
2.1.128 18,830 3/13/2024
2.1.127 166 3/13/2024
2.1.126 164 3/13/2024
2.1.125 1,646 3/13/2024
2.1.124 160 3/13/2024
2.1.123 165 3/13/2024
2.1.122 37,733 3/8/2024
2.1.121 15,849 3/3/2024
2.1.120 13,237 3/2/2024
2.1.119 2,047 3/1/2024
2.1.117 12,040 2/28/2024
2.1.116 22,877 2/25/2024
2.1.115 206 2/25/2024
2.1.114 18,477 2/21/2024
2.1.113 4,680 2/21/2024
2.1.112 2,792 2/21/2024
2.1.111 1,847 2/21/2024
2.1.110 228 2/21/2024
2.1.109 5,964 2/21/2024
2.1.108 219 2/21/2024
2.1.107 234 2/21/2024
2.1.106 14,913 2/20/2024
2.1.105 1,619 2/20/2024
2.1.104 9,952 2/19/2024
2.1.103 10,178 2/16/2024
2.1.102 6,890 2/16/2024
2.1.101 225 2/16/2024
2.1.100 6,550 2/16/2024
2.1.99 40,084 2/9/2024
2.1.98 36,225 2/7/2024
2.1.97 4,562 2/6/2024
2.1.96 2,766 2/6/2024
2.1.95 449 2/6/2024
2.1.94 251 2/6/2024
2.1.93 13,387 2/4/2024
2.1.92 98,515 1/15/2024
2.1.91 5,342 1/15/2024
2.1.90 361 1/15/2024
2.1.89 3,102 1/15/2024
2.1.88 308 1/15/2024
2.1.87 37,310 1/7/2024
2.1.86 7,336 1/5/2024
2.1.85 4,435 1/5/2024
2.1.84 345 1/5/2024
2.1.83 368 1/5/2024
2.1.82 5,039 1/5/2024
2.1.81 12,700 1/1/2024
2.1.80 422 1/1/2024
2.1.79 8,313 12/28/2023
2.1.78 4,223 12/28/2023
2.1.77 4,127 12/27/2023
2.1.76 397 12/27/2023
2.1.75 399 12/27/2023
2.1.74 4,981 12/27/2023
2.1.73 371 12/27/2023
2.1.72 395 12/27/2023
2.1.71 15,651 12/25/2023
2.1.70 854 12/25/2023
2.1.69 408 12/25/2023
2.1.68 408 12/25/2023
2.1.67 4,693 12/25/2023
2.1.66 12,689 12/24/2023
2.1.65 7,650 12/23/2023
2.1.64 2,063 12/23/2023
2.1.63 369 12/23/2023
2.1.62 5,482 12/23/2023
2.1.61 401 12/23/2023
2.1.60 365 12/23/2023
2.1.59 1,810 12/23/2023
2.1.58 374 12/23/2023
2.1.57 13,644 12/19/2023
2.1.56 4,540 12/18/2023
2.1.55 12,798 12/10/2023
2.1.51 6,230 12/10/2023
2.1.50 10,992 12/9/2023
2.1.49 417 12/9/2023
2.1.48 503 12/9/2023
2.1.47 433 12/9/2023
2.1.46 428 12/9/2023
2.1.45 453 12/9/2023
2.1.44 7,418 12/9/2023
2.1.43 11,551 12/6/2023
2.1.42 9,287 12/4/2023
2.1.41 5,931 12/4/2023
2.1.40 462 12/4/2023
2.1.39 881 12/4/2023
2.1.38 500 12/4/2023
2.1.37 15,692 11/23/2023
2.1.36 429 11/23/2023
2.1.35 798 11/23/2023
2.1.34 452 11/23/2023
2.1.33 2,042 11/23/2023
2.1.32 3,204 11/23/2023
2.1.31 9,488 11/20/2023
2.1.30 3,835 11/20/2023
2.1.29 6,793 11/19/2023
2.1.28 1,157 11/19/2023
2.1.27 436 11/19/2023
2.1.26 446 11/19/2023
2.1.25 420 11/19/2023
2.1.24 2,323 11/19/2023
2.1.23 10,010 11/18/2023
2.1.22 466 11/18/2023
2.1.21 3,297 11/18/2023
2.1.20 2,227 11/18/2023
2.1.19 445 11/18/2023
2.1.18 5,792 11/17/2023
2.1.17 1,459 11/17/2023
2.1.16 471 11/17/2023
2.1.15 453 11/17/2023
2.1.14 1,875 11/17/2023
2.1.13 7,966 11/17/2023
2.1.12 2,098 11/17/2023
2.1.11 448 11/17/2023
2.1.10 482 11/17/2023
2.1.9 495 11/17/2023
2.1.8 3,677 11/17/2023
2.1.7 1,654 11/16/2023
2.1.6 406 11/16/2023
2.1.5 904 11/16/2023
2.1.4 444 11/16/2023
2.0.140 5,534 11/15/2023
2.0.139 467 11/15/2023
2.0.138 448 11/15/2023
2.0.137 451 11/15/2023
2.0.136 443 11/15/2023
2.0.3 428 11/16/2023
2.0.2 451 11/16/2023
2.0.1 405 11/16/2023
1.0.135 12,235 11/10/2023
1.0.134 473 11/10/2023
1.0.133 5,815 11/9/2023
1.0.132 423 11/9/2023
1.0.131 469 11/9/2023
1.0.130 2,091 11/8/2023
1.0.129 10,507 11/6/2023
1.0.128 447 11/6/2023
1.0.127 476 11/6/2023
1.0.126 479 11/6/2023
1.0.125 3,912 11/3/2023
1.0.124 7,080 11/2/2023
1.0.123 491 11/2/2023
1.0.122 476 11/2/2023
1.0.121 448 11/2/2023
1.0.120 3,765 11/1/2023
1.0.119 19,709 10/18/2023
1.0.118 511 10/18/2023
1.0.117 498 10/18/2023
1.0.116 488 10/18/2023
1.0.115 4,229 10/17/2023
1.0.114 4,957 10/16/2023
1.0.113 499 10/16/2023
1.0.112 493 10/16/2023
1.0.111 525 10/16/2023
1.0.110 7,344 10/13/2023
1.0.109 546 10/13/2023
1.0.108 13,839 9/19/2023
1.0.107 535 9/19/2023
1.0.106 534 9/19/2023
1.0.105 493 9/19/2023
1.0.104 6,594 9/18/2023
1.0.103 535 9/18/2023
1.0.102 16,201 8/30/2023
1.0.101 592 8/30/2023
1.0.100 552 8/30/2023
1.0.99 555 8/30/2023
1.0.98 574 8/30/2023
1.0.97 11,998 8/25/2023
1.0.96 5,476 8/24/2023
1.0.95 564 8/24/2023
1.0.94 10,680 8/18/2023
1.0.93 587 8/18/2023
1.0.92 4,923 8/17/2023
1.0.91 559 8/17/2023
1.0.90 571 8/17/2023
1.0.89 18,435 8/8/2023
1.0.88 590 8/8/2023
1.0.87 5,973 8/7/2023
1.0.86 620 8/7/2023
1.0.85 590 8/7/2023
1.0.84 22,327 7/10/2023
1.0.83 668 7/10/2023
1.0.82 681 7/10/2023
1.0.81 695 7/10/2023
1.0.80 5,032 7/7/2023
1.0.79 627 7/7/2023
1.0.78 16,542 6/29/2023
1.0.77 4,556 6/28/2023
1.0.76 654 6/28/2023
1.0.75 690 6/28/2023
1.0.74 47,780 6/7/2023
1.0.73 6,104 6/7/2023
1.0.72 693 6/7/2023
1.0.71 686 6/7/2023
1.0.70 7,392 6/6/2023
1.0.69 683 6/6/2023
1.0.68 2,835 6/5/2023
1.0.67 655 6/5/2023
1.0.66 7,211 6/2/2023
1.0.65 708 6/2/2023
1.0.64 688 6/2/2023
1.0.63 28,632 5/30/2023
1.0.62 676 5/30/2023
1.0.61 8,284 5/29/2023
1.0.60 689 5/29/2023
1.0.59 6,625 5/26/2023
1.0.58 12,379 5/25/2023
1.0.57 696 5/25/2023
1.0.56 6,364 5/24/2023
1.0.55 711 5/24/2023
1.0.54 707 5/24/2023
1.0.53 685 5/24/2023
1.0.52 789 5/24/2023
1.0.51 4,227 5/23/2023
1.0.50 691 5/23/2023
1.0.49 683 5/23/2023
1.0.46 13,448 5/22/2023
1.0.45 10,970 5/18/2023
1.0.44 6,562 5/17/2023
1.0.43 677 5/17/2023
1.0.42 665 5/17/2023
1.0.41 662 5/17/2023
1.0.40 17,382 4/24/2023
1.0.39 2,390 4/24/2023
1.0.38 738 4/24/2023
1.0.37 4,064 4/21/2023
1.0.36 688 4/21/2023
1.0.35 692 4/21/2023
1.0.34 4,512 4/20/2023
1.0.33 878 4/20/2023
1.0.32 826 4/20/2023
1.0.31 4,154 4/19/2023
1.0.30 1,882 4/18/2023
1.0.29 706 4/18/2023
1.0.28 1,873 4/18/2023
1.0.27 3,352 4/17/2023
1.0.26 799 4/16/2023
1.0.25 741 4/16/2023
1.0.24 3,500 4/14/2023
1.0.23 2,550 4/13/2023
1.0.22 2,445 4/12/2023
1.0.21 725 4/12/2023
1.0.20 725 4/12/2023
1.0.19 1,751 4/11/2023
1.0.18 792 4/11/2023
1.0.17 2,576 4/11/2023
1.0.16 2,986 4/7/2023
1.0.15 3,801 4/3/2023
1.0.14 757 4/3/2023
1.0.13 760 4/3/2023
1.0.12 721 4/3/2023
1.0.11 2,046 4/1/2023
1.0.10 1,152 3/30/2023
1.0.9 882 3/26/2023
1.0.7 3,963 2/27/2023
1.0.6 787 2/26/2023
1.0.5 779 2/22/2023
1.0.4 971 2/22/2023
1.0.3 799 2/22/2023
1.0.2 1,348 2/12/2023
1.0.1 1,001 2/12/2023