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

A utility library for useful String operations

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.271 13,277 11/19/2024
3.0.270 54 11/19/2024
3.0.269 3,960 11/19/2024
3.0.268 59 11/19/2024
3.0.267 54 11/19/2024
3.0.266 11,494 11/19/2024
3.0.265 2,807 11/19/2024
3.0.264 26,569 11/14/2024
3.0.263 77 11/14/2024
3.0.262 2,918 11/14/2024
3.0.261 68 11/14/2024
3.0.260 68 11/14/2024
3.0.259 1,722 11/13/2024
3.0.258 74 11/13/2024
2.1.257 48,191 11/8/2024
2.1.256 14,231 11/8/2024
2.1.255 70 11/8/2024
2.1.254 66 11/8/2024
2.1.253 48,117 10/28/2024
2.1.252 110,749 10/1/2024
2.1.251 16,849 9/30/2024
2.1.250 29,482 9/27/2024
2.1.249 93 9/27/2024
2.1.248 82 9/27/2024
2.1.247 2,784 9/27/2024
2.1.246 77 9/27/2024
2.1.245 78 9/27/2024
2.1.244 80 9/27/2024
2.1.243 53,552 9/23/2024
2.1.242 758 9/23/2024
2.1.241 3,716 9/23/2024
2.1.240 85 9/23/2024
2.1.239 1,266 9/23/2024
2.1.238 90 9/23/2024
2.1.237 7,312 9/22/2024
2.1.236 28,190 9/17/2024
2.1.235 204 9/17/2024
2.1.234 91 9/17/2024
2.1.233 193 9/17/2024
2.1.232 89 9/17/2024
2.1.231 4,168 9/17/2024
2.1.230 113 9/17/2024
2.1.229 49,690 9/11/2024
2.1.228 17,032 9/11/2024
2.1.227 23,447 9/9/2024
2.1.226 9,642 9/9/2024
2.1.225 5,900 9/9/2024
2.1.224 8,312 9/9/2024
2.1.223 8,949 9/9/2024
2.1.222 92 9/9/2024
2.1.221 91 9/9/2024
2.1.220 36,395 9/5/2024
2.1.219 7,160 9/5/2024
2.1.218 96 9/5/2024
2.1.217 93 9/5/2024
2.1.216 1,177 9/5/2024
2.1.215 96 9/5/2024
2.1.214 3,879 9/5/2024
2.1.213 20,788 9/4/2024
2.1.212 49,554 8/20/2024
2.1.211 5,619 8/20/2024
2.1.210 105 8/20/2024
2.1.209 108 8/20/2024
2.1.208 4,998 8/20/2024
2.1.207 112 8/20/2024
2.1.206 101 8/20/2024
2.1.205 72,673 7/24/2024
2.1.204 5,771 7/24/2024
2.1.203 73 7/24/2024
2.1.202 26,759 7/13/2024
2.1.201 103 7/13/2024
2.1.200 15,647 7/10/2024
2.1.199 4,612 7/10/2024
2.1.198 117 7/10/2024
2.1.196 4,263 7/9/2024
2.1.194 3,322 7/9/2024
2.1.193 19,473 7/9/2024
2.1.192 5,898 7/9/2024
2.1.191 640 7/9/2024
2.1.190 94 7/9/2024
2.1.189 9,181 7/9/2024
2.1.188 2,793 7/8/2024
2.1.187 95 7/8/2024
2.1.186 117 7/8/2024
2.1.185 86 7/8/2024
2.1.184 90 7/8/2024
2.1.183 5,359 7/8/2024
2.1.182 87 7/8/2024
2.1.181 88 7/8/2024
2.1.180 531 7/8/2024
2.1.179 24,742 7/7/2024
2.1.178 3,217 7/7/2024
2.1.177 21,990 7/3/2024
2.1.176 36,976 6/14/2024
2.1.174 43,165 5/27/2024
2.1.173 3,077 5/27/2024
2.1.172 89 5/27/2024
2.1.171 20,163 5/25/2024
2.1.170 7,414 5/25/2024
2.1.169 102 5/25/2024
2.1.168 100 5/25/2024
2.1.167 4,380 5/25/2024
2.1.166 95 5/25/2024
2.1.165 98 5/25/2024
2.1.164 96 5/25/2024
2.1.163 4,076 5/25/2024
2.1.162 95 5/25/2024
2.1.161 18,903 5/22/2024
2.1.160 4,757 5/22/2024
2.1.159 2,378 5/22/2024
2.1.158 104 5/22/2024
2.1.157 103 5/22/2024
2.1.156 111 5/22/2024
2.1.155 9,771 5/22/2024
2.1.154 16,296 5/16/2024
2.1.153 47,074 4/28/2024
2.1.152 92 4/28/2024
2.1.151 7,261 4/28/2024
2.1.150 93 4/28/2024
2.1.149 104 4/28/2024
2.1.148 669 4/28/2024
2.1.147 106 4/28/2024
2.1.146 113 4/28/2024
2.1.145 5,196 4/27/2024
2.1.144 134 4/27/2024
2.1.143 99 4/27/2024
2.1.142 37,865 4/12/2024
2.1.141 122 4/12/2024
2.1.140 4,782 4/12/2024
2.1.139 128 4/12/2024
2.1.138 106 4/12/2024
2.1.137 3,124 4/12/2024
2.1.136 119 4/12/2024
2.1.135 117 4/12/2024
2.1.134 103 4/12/2024
2.1.133 25,489 4/1/2024
2.1.132 18,472 3/25/2024
2.1.131 20,067 3/18/2024
2.1.130 180 3/18/2024
2.1.129 343 3/18/2024
2.1.128 18,833 3/13/2024
2.1.127 169 3/13/2024
2.1.126 167 3/13/2024
2.1.125 1,649 3/13/2024
2.1.124 163 3/13/2024
2.1.123 168 3/13/2024
2.1.122 37,736 3/8/2024
2.1.121 15,852 3/3/2024
2.1.120 13,240 3/2/2024
2.1.119 2,050 3/1/2024
2.1.117 12,043 2/28/2024
2.1.116 22,880 2/25/2024
2.1.115 209 2/25/2024
2.1.114 18,480 2/21/2024
2.1.113 4,683 2/21/2024
2.1.112 2,796 2/21/2024
2.1.111 1,852 2/21/2024
2.1.110 231 2/21/2024
2.1.109 5,967 2/21/2024
2.1.108 224 2/21/2024
2.1.107 239 2/21/2024
2.1.106 14,916 2/20/2024
2.1.105 1,623 2/20/2024
2.1.104 9,955 2/19/2024
2.1.103 10,181 2/16/2024
2.1.102 6,893 2/16/2024
2.1.101 230 2/16/2024
2.1.100 6,553 2/16/2024
2.1.99 40,087 2/9/2024
2.1.98 36,228 2/7/2024
2.1.97 4,565 2/6/2024
2.1.96 2,771 2/6/2024
2.1.95 452 2/6/2024
2.1.94 254 2/6/2024
2.1.93 13,390 2/4/2024
2.1.92 98,518 1/15/2024
2.1.91 5,345 1/15/2024
2.1.90 364 1/15/2024
2.1.89 3,105 1/15/2024
2.1.88 311 1/15/2024
2.1.87 37,313 1/7/2024
2.1.86 7,339 1/5/2024
2.1.85 4,438 1/5/2024
2.1.84 348 1/5/2024
2.1.83 371 1/5/2024
2.1.82 5,042 1/5/2024
2.1.81 12,703 1/1/2024
2.1.80 425 1/1/2024
2.1.79 8,316 12/28/2023
2.1.78 4,226 12/28/2023
2.1.77 4,130 12/27/2023
2.1.76 400 12/27/2023
2.1.75 402 12/27/2023
2.1.74 4,984 12/27/2023
2.1.73 374 12/27/2023
2.1.72 398 12/27/2023
2.1.71 15,654 12/25/2023
2.1.70 857 12/25/2023
2.1.69 411 12/25/2023
2.1.68 411 12/25/2023
2.1.67 4,696 12/25/2023
2.1.66 12,692 12/24/2023
2.1.65 7,653 12/23/2023
2.1.64 2,066 12/23/2023
2.1.63 372 12/23/2023
2.1.62 5,485 12/23/2023
2.1.61 404 12/23/2023
2.1.60 368 12/23/2023
2.1.59 1,813 12/23/2023
2.1.58 377 12/23/2023
2.1.57 13,647 12/19/2023
2.1.56 4,543 12/18/2023
2.1.55 12,801 12/10/2023
2.1.51 6,232 12/10/2023
2.1.50 10,994 12/9/2023
2.1.49 420 12/9/2023
2.1.48 506 12/9/2023
2.1.47 436 12/9/2023
2.1.46 431 12/9/2023
2.1.45 455 12/9/2023
2.1.44 7,421 12/9/2023
2.1.43 11,553 12/6/2023
2.1.42 9,290 12/4/2023
2.1.41 5,933 12/4/2023
2.1.40 464 12/4/2023
2.1.39 884 12/4/2023
2.1.38 503 12/4/2023
2.1.37 15,695 11/23/2023
2.1.36 432 11/23/2023
2.1.35 801 11/23/2023
2.1.34 455 11/23/2023
2.1.33 2,045 11/23/2023
2.1.32 3,207 11/23/2023
2.1.31 9,492 11/20/2023
2.1.30 3,838 11/20/2023
2.1.29 6,796 11/19/2023
2.1.28 1,160 11/19/2023
2.1.27 439 11/19/2023
2.1.26 449 11/19/2023
2.1.25 422 11/19/2023
2.1.24 2,325 11/19/2023
2.1.23 10,013 11/18/2023
2.1.22 469 11/18/2023
2.1.21 3,300 11/18/2023
2.1.20 2,230 11/18/2023
2.1.19 448 11/18/2023
2.1.18 5,795 11/17/2023
2.1.17 1,462 11/17/2023
2.1.16 474 11/17/2023
2.1.15 456 11/17/2023
2.1.14 1,878 11/17/2023
2.1.13 7,969 11/17/2023
2.1.12 2,101 11/17/2023
2.1.11 452 11/17/2023
2.1.10 485 11/17/2023
2.1.9 498 11/17/2023
2.1.8 3,680 11/17/2023
2.1.7 1,657 11/16/2023
2.1.6 410 11/16/2023
2.1.5 907 11/16/2023
2.1.4 447 11/16/2023
2.0.140 5,537 11/15/2023
2.0.139 470 11/15/2023
2.0.138 451 11/15/2023
2.0.137 454 11/15/2023
2.0.136 446 11/15/2023
2.0.3 431 11/16/2023
2.0.2 454 11/16/2023
2.0.1 408 11/16/2023
1.0.135 12,238 11/10/2023
1.0.134 476 11/10/2023
1.0.133 5,818 11/9/2023
1.0.132 426 11/9/2023
1.0.131 472 11/9/2023
1.0.130 2,094 11/8/2023
1.0.129 10,510 11/6/2023
1.0.128 450 11/6/2023
1.0.127 479 11/6/2023
1.0.126 482 11/6/2023
1.0.125 3,915 11/3/2023
1.0.124 7,083 11/2/2023
1.0.123 496 11/2/2023
1.0.122 479 11/2/2023
1.0.121 451 11/2/2023
1.0.120 3,768 11/1/2023
1.0.119 19,712 10/18/2023
1.0.118 514 10/18/2023
1.0.117 501 10/18/2023
1.0.116 491 10/18/2023
1.0.115 4,232 10/17/2023
1.0.114 4,960 10/16/2023
1.0.113 502 10/16/2023
1.0.112 496 10/16/2023
1.0.111 528 10/16/2023
1.0.110 7,347 10/13/2023
1.0.109 549 10/13/2023
1.0.108 13,842 9/19/2023
1.0.107 538 9/19/2023
1.0.106 537 9/19/2023
1.0.105 496 9/19/2023
1.0.104 6,597 9/18/2023
1.0.103 538 9/18/2023
1.0.102 16,204 8/30/2023
1.0.101 595 8/30/2023
1.0.100 555 8/30/2023
1.0.99 558 8/30/2023
1.0.98 577 8/30/2023
1.0.97 12,001 8/25/2023
1.0.96 5,479 8/24/2023
1.0.95 567 8/24/2023
1.0.94 10,683 8/18/2023
1.0.93 590 8/18/2023
1.0.92 4,926 8/17/2023
1.0.91 562 8/17/2023
1.0.90 574 8/17/2023
1.0.89 18,438 8/8/2023
1.0.88 593 8/8/2023
1.0.87 5,976 8/7/2023
1.0.86 623 8/7/2023
1.0.85 593 8/7/2023
1.0.84 22,330 7/10/2023
1.0.83 671 7/10/2023
1.0.82 684 7/10/2023
1.0.81 698 7/10/2023
1.0.80 5,035 7/7/2023
1.0.79 630 7/7/2023
1.0.78 16,545 6/29/2023
1.0.77 4,559 6/28/2023
1.0.76 657 6/28/2023
1.0.75 693 6/28/2023
1.0.74 47,783 6/7/2023
1.0.73 6,107 6/7/2023
1.0.72 696 6/7/2023
1.0.71 689 6/7/2023
1.0.70 7,395 6/6/2023
1.0.69 686 6/6/2023
1.0.68 2,838 6/5/2023
1.0.67 658 6/5/2023
1.0.66 7,214 6/2/2023
1.0.65 711 6/2/2023
1.0.64 691 6/2/2023
1.0.63 28,635 5/30/2023
1.0.62 681 5/30/2023
1.0.61 8,288 5/29/2023
1.0.60 692 5/29/2023
1.0.59 6,628 5/26/2023
1.0.58 12,382 5/25/2023
1.0.57 699 5/25/2023
1.0.56 6,367 5/24/2023
1.0.55 715 5/24/2023
1.0.54 710 5/24/2023
1.0.53 689 5/24/2023
1.0.52 792 5/24/2023
1.0.51 4,230 5/23/2023
1.0.50 694 5/23/2023
1.0.49 686 5/23/2023
1.0.46 13,451 5/22/2023
1.0.45 10,973 5/18/2023
1.0.44 6,565 5/17/2023
1.0.43 680 5/17/2023
1.0.42 668 5/17/2023
1.0.41 665 5/17/2023
1.0.40 17,385 4/24/2023
1.0.39 2,393 4/24/2023
1.0.38 741 4/24/2023
1.0.37 4,067 4/21/2023
1.0.36 691 4/21/2023
1.0.35 695 4/21/2023
1.0.34 4,515 4/20/2023
1.0.33 881 4/20/2023
1.0.32 829 4/20/2023
1.0.31 4,157 4/19/2023
1.0.30 1,885 4/18/2023
1.0.29 709 4/18/2023
1.0.28 1,876 4/18/2023
1.0.27 3,355 4/17/2023
1.0.26 802 4/16/2023
1.0.25 746 4/16/2023
1.0.24 3,503 4/14/2023
1.0.23 2,553 4/13/2023
1.0.22 2,448 4/12/2023
1.0.21 728 4/12/2023
1.0.20 728 4/12/2023
1.0.19 1,754 4/11/2023
1.0.18 795 4/11/2023
1.0.17 2,579 4/11/2023
1.0.16 2,989 4/7/2023
1.0.15 3,804 4/3/2023
1.0.14 760 4/3/2023
1.0.13 763 4/3/2023
1.0.12 724 4/3/2023
1.0.11 2,049 4/1/2023
1.0.10 1,155 3/30/2023
1.0.9 885 3/26/2023
1.0.7 3,966 2/27/2023
1.0.6 790 2/26/2023
1.0.5 784 2/22/2023
1.0.4 974 2/22/2023
1.0.3 802 2/22/2023
1.0.2 1,351 2/12/2023
1.0.1 1,004 2/12/2023