Soenneker.Extensions.String 2.1.122

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. 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.122
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.122
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.122" />
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.122
#r "nuget: Soenneker.Extensions.String, 2.1.122"
#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.122

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

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

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

Package Downloads
Soenneker.Utils.MemoryStream The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

An easy modern MemoryStream utility

Soenneker.Extensions.Configuration The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A collection of helpful IConfiguration extension methods

Soenneker.Utils.Logger The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A useful utility library dealing with Serilog logging

Soenneker.Documents.Document The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

The base document type providing a building block for storage objects

Soenneker.Utils.Environment The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.176 0 6/14/2024
2.1.174 30,094 5/27/2024
2.1.173 2,611 5/27/2024
2.1.172 57 5/27/2024
2.1.171 14,978 5/25/2024
2.1.170 6,004 5/25/2024
2.1.169 72 5/25/2024
2.1.168 67 5/25/2024
2.1.167 3,343 5/25/2024
2.1.166 65 5/25/2024
2.1.165 65 5/25/2024
2.1.164 64 5/25/2024
2.1.163 3,213 5/25/2024
2.1.162 66 5/25/2024
2.1.161 14,514 5/22/2024
2.1.160 3,771 5/22/2024
2.1.159 1,728 5/22/2024
2.1.158 74 5/22/2024
2.1.157 66 5/22/2024
2.1.156 67 5/22/2024
2.1.155 7,360 5/22/2024
2.1.154 12,577 5/16/2024
2.1.153 34,635 4/28/2024
2.1.152 70 4/28/2024
2.1.151 5,475 4/28/2024
2.1.150 71 4/28/2024
2.1.149 69 4/28/2024
2.1.148 574 4/28/2024
2.1.147 71 4/28/2024
2.1.146 71 4/28/2024
2.1.145 4,408 4/27/2024
2.1.144 84 4/27/2024
2.1.143 68 4/27/2024
2.1.142 28,470 4/12/2024
2.1.141 86 4/12/2024
2.1.140 3,501 4/12/2024
2.1.139 93 4/12/2024
2.1.138 79 4/12/2024
2.1.137 2,882 4/12/2024
2.1.136 82 4/12/2024
2.1.135 77 4/12/2024
2.1.134 80 4/12/2024
2.1.133 18,933 4/1/2024
2.1.132 13,501 3/25/2024
2.1.131 15,064 3/18/2024
2.1.130 152 3/18/2024
2.1.129 268 3/18/2024
2.1.128 14,189 3/13/2024
2.1.127 141 3/13/2024
2.1.126 139 3/13/2024
2.1.125 1,494 3/13/2024
2.1.124 128 3/13/2024
2.1.123 127 3/13/2024
2.1.122 28,156 3/8/2024
2.1.121 11,937 3/3/2024
2.1.120 10,169 3/2/2024
2.1.119 1,899 3/1/2024
2.1.117 9,404 2/28/2024
2.1.116 17,642 2/25/2024
2.1.115 174 2/25/2024
2.1.114 14,506 2/21/2024
2.1.113 3,988 2/21/2024
2.1.112 2,158 2/21/2024
2.1.111 1,402 2/21/2024
2.1.110 205 2/21/2024
2.1.109 4,709 2/21/2024
2.1.108 193 2/21/2024
2.1.107 196 2/21/2024
2.1.106 11,858 2/20/2024
2.1.105 1,338 2/20/2024
2.1.104 7,792 2/19/2024
2.1.103 7,880 2/16/2024
2.1.102 5,427 2/16/2024
2.1.101 200 2/16/2024
2.1.100 5,440 2/16/2024
2.1.99 31,652 2/9/2024
2.1.98 27,848 2/7/2024
2.1.97 3,881 2/6/2024
2.1.96 2,267 2/6/2024
2.1.95 342 2/6/2024
2.1.94 218 2/6/2024
2.1.93 10,551 2/4/2024
2.1.92 78,631 1/15/2024
2.1.91 4,353 1/15/2024
2.1.90 330 1/15/2024
2.1.89 2,658 1/15/2024
2.1.88 285 1/15/2024
2.1.87 30,469 1/7/2024
2.1.86 6,052 1/5/2024
2.1.85 3,526 1/5/2024
2.1.84 319 1/5/2024
2.1.83 343 1/5/2024
2.1.82 4,371 1/5/2024
2.1.81 10,451 1/1/2024
2.1.80 395 1/1/2024
2.1.79 6,724 12/28/2023
2.1.78 3,606 12/28/2023
2.1.77 3,409 12/27/2023
2.1.76 364 12/27/2023
2.1.75 372 12/27/2023
2.1.74 4,268 12/27/2023
2.1.73 342 12/27/2023
2.1.72 363 12/27/2023
2.1.71 12,506 12/25/2023
2.1.70 735 12/25/2023
2.1.69 380 12/25/2023
2.1.68 383 12/25/2023
2.1.67 3,990 12/25/2023
2.1.66 10,288 12/24/2023
2.1.65 6,196 12/23/2023
2.1.64 1,519 12/23/2023
2.1.63 351 12/23/2023
2.1.62 4,465 12/23/2023
2.1.61 380 12/23/2023
2.1.60 343 12/23/2023
2.1.59 1,543 12/23/2023
2.1.58 350 12/23/2023
2.1.57 11,074 12/19/2023
2.1.56 3,686 12/18/2023
2.1.55 10,385 12/10/2023
2.1.51 5,238 12/10/2023
2.1.50 8,940 12/9/2023
2.1.49 392 12/9/2023
2.1.48 459 12/9/2023
2.1.47 404 12/9/2023
2.1.46 401 12/9/2023
2.1.45 428 12/9/2023
2.1.44 6,044 12/9/2023
2.1.43 9,507 12/6/2023
2.1.42 7,475 12/4/2023
2.1.41 5,007 12/4/2023
2.1.40 440 12/4/2023
2.1.39 710 12/4/2023
2.1.38 461 12/4/2023
2.1.37 12,398 11/23/2023
2.1.36 382 11/23/2023
2.1.35 614 11/23/2023
2.1.34 415 11/23/2023
2.1.33 1,667 11/23/2023
2.1.32 2,667 11/23/2023
2.1.31 7,510 11/20/2023
2.1.30 2,973 11/20/2023
2.1.29 5,402 11/19/2023
2.1.28 863 11/19/2023
2.1.27 408 11/19/2023
2.1.26 426 11/19/2023
2.1.25 396 11/19/2023
2.1.24 1,943 11/19/2023
2.1.23 8,083 11/18/2023
2.1.22 440 11/18/2023
2.1.21 2,742 11/18/2023
2.1.20 1,877 11/18/2023
2.1.19 422 11/18/2023
2.1.18 4,725 11/17/2023
2.1.17 1,203 11/17/2023
2.1.16 446 11/17/2023
2.1.15 426 11/17/2023
2.1.14 1,411 11/17/2023
2.1.13 6,374 11/17/2023
2.1.12 1,496 11/17/2023
2.1.11 415 11/17/2023
2.1.10 431 11/17/2023
2.1.9 446 11/17/2023
2.1.8 2,811 11/17/2023
2.1.7 1,340 11/16/2023
2.1.6 383 11/16/2023
2.1.5 693 11/16/2023
2.1.4 421 11/16/2023
2.0.140 4,387 11/15/2023
2.0.139 442 11/15/2023
2.0.138 422 11/15/2023
2.0.137 423 11/15/2023
2.0.136 416 11/15/2023
2.0.3 403 11/16/2023
2.0.2 426 11/16/2023
2.0.1 382 11/16/2023
1.0.135 10,065 11/10/2023
1.0.134 438 11/10/2023
1.0.133 4,955 11/9/2023
1.0.132 394 11/9/2023
1.0.131 440 11/9/2023
1.0.130 1,744 11/8/2023
1.0.129 8,936 11/6/2023
1.0.128 417 11/6/2023
1.0.127 453 11/6/2023
1.0.126 457 11/6/2023
1.0.125 3,316 11/3/2023
1.0.124 5,984 11/2/2023
1.0.123 449 11/2/2023
1.0.122 448 11/2/2023
1.0.121 424 11/2/2023
1.0.120 3,216 11/1/2023
1.0.119 16,196 10/18/2023
1.0.118 490 10/18/2023
1.0.117 475 10/18/2023
1.0.116 463 10/18/2023
1.0.115 3,569 10/17/2023
1.0.114 4,291 10/16/2023
1.0.113 476 10/16/2023
1.0.112 468 10/16/2023
1.0.111 482 10/16/2023
1.0.110 6,476 10/13/2023
1.0.109 502 10/13/2023
1.0.108 11,488 9/19/2023
1.0.107 512 9/19/2023
1.0.106 510 9/19/2023
1.0.105 467 9/19/2023
1.0.104 5,875 9/18/2023
1.0.103 511 9/18/2023
1.0.102 13,754 8/30/2023
1.0.101 567 8/30/2023
1.0.100 510 8/30/2023
1.0.99 529 8/30/2023
1.0.98 541 8/30/2023
1.0.97 10,236 8/25/2023
1.0.96 4,749 8/24/2023
1.0.95 540 8/24/2023
1.0.94 8,992 8/18/2023
1.0.93 558 8/18/2023
1.0.92 4,168 8/17/2023
1.0.91 533 8/17/2023
1.0.90 547 8/17/2023
1.0.89 15,954 8/8/2023
1.0.88 568 8/8/2023
1.0.87 5,154 8/7/2023
1.0.86 578 8/7/2023
1.0.85 566 8/7/2023
1.0.84 19,381 7/10/2023
1.0.83 626 7/10/2023
1.0.82 657 7/10/2023
1.0.81 672 7/10/2023
1.0.80 4,300 7/7/2023
1.0.79 604 7/7/2023
1.0.78 14,392 6/29/2023
1.0.77 4,013 6/28/2023
1.0.76 633 6/28/2023
1.0.75 669 6/28/2023
1.0.74 42,023 6/7/2023
1.0.73 5,641 6/7/2023
1.0.72 671 6/7/2023
1.0.71 663 6/7/2023
1.0.70 6,703 6/6/2023
1.0.69 652 6/6/2023
1.0.68 2,620 6/5/2023
1.0.67 631 6/5/2023
1.0.66 6,358 6/2/2023
1.0.65 662 6/2/2023
1.0.64 661 6/2/2023
1.0.63 25,779 5/30/2023
1.0.62 648 5/30/2023
1.0.61 7,535 5/29/2023
1.0.60 661 5/29/2023
1.0.59 6,160 5/26/2023
1.0.58 11,341 5/25/2023
1.0.57 673 5/25/2023
1.0.56 5,819 5/24/2023
1.0.55 680 5/24/2023
1.0.54 683 5/24/2023
1.0.53 660 5/24/2023
1.0.52 761 5/24/2023
1.0.51 3,829 5/23/2023
1.0.50 672 5/23/2023
1.0.49 658 5/23/2023
1.0.46 12,316 5/22/2023
1.0.45 9,946 5/18/2023
1.0.44 5,924 5/17/2023
1.0.43 655 5/17/2023
1.0.42 638 5/17/2023
1.0.41 642 5/17/2023
1.0.40 15,585 4/24/2023
1.0.39 2,220 4/24/2023
1.0.38 712 4/24/2023
1.0.37 3,675 4/21/2023
1.0.36 665 4/21/2023
1.0.35 666 4/21/2023
1.0.34 4,056 4/20/2023
1.0.33 821 4/20/2023
1.0.32 781 4/20/2023
1.0.31 3,822 4/19/2023
1.0.30 1,703 4/18/2023
1.0.29 680 4/18/2023
1.0.28 1,773 4/18/2023
1.0.27 3,061 4/17/2023
1.0.26 755 4/16/2023
1.0.25 719 4/16/2023
1.0.24 3,172 4/14/2023
1.0.23 2,331 4/13/2023
1.0.22 2,221 4/12/2023
1.0.21 703 4/12/2023
1.0.20 692 4/12/2023
1.0.19 1,561 4/11/2023
1.0.18 747 4/11/2023
1.0.17 2,386 4/11/2023
1.0.16 2,728 4/7/2023
1.0.15 3,423 4/3/2023
1.0.14 732 4/3/2023
1.0.13 719 4/3/2023
1.0.12 698 4/3/2023
1.0.11 1,901 4/1/2023
1.0.10 1,110 3/30/2023
1.0.9 845 3/26/2023
1.0.7 3,740 2/27/2023
1.0.6 742 2/26/2023
1.0.5 751 2/22/2023
1.0.4 925 2/22/2023
1.0.3 771 2/22/2023
1.0.2 1,283 2/12/2023
1.0.1 961 2/12/2023