Soenneker.Extensions.String 2.1.161

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

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

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.161 4,065 5/22/2024
2.1.160 2,618 5/22/2024
2.1.159 1,014 5/22/2024
2.1.158 44 5/22/2024
2.1.157 36 5/22/2024
2.1.156 37 5/22/2024
2.1.155 4,917 5/22/2024
2.1.154 11,872 5/16/2024
2.1.153 34,587 4/28/2024
2.1.152 67 4/28/2024
2.1.151 5,466 4/28/2024
2.1.150 68 4/28/2024
2.1.149 66 4/28/2024
2.1.148 571 4/28/2024
2.1.147 68 4/28/2024
2.1.146 68 4/28/2024
2.1.145 4,402 4/27/2024
2.1.144 81 4/27/2024
2.1.143 65 4/27/2024
2.1.142 28,467 4/12/2024
2.1.141 85 4/12/2024
2.1.140 3,495 4/12/2024
2.1.139 92 4/12/2024
2.1.138 78 4/12/2024
2.1.137 2,881 4/12/2024
2.1.136 81 4/12/2024
2.1.135 76 4/12/2024
2.1.134 79 4/12/2024
2.1.133 18,921 4/1/2024
2.1.132 13,494 3/25/2024
2.1.131 15,057 3/18/2024
2.1.130 151 3/18/2024
2.1.129 267 3/18/2024
2.1.128 14,182 3/13/2024
2.1.127 140 3/13/2024
2.1.126 138 3/13/2024
2.1.125 1,493 3/13/2024
2.1.124 127 3/13/2024
2.1.123 126 3/13/2024
2.1.122 28,149 3/8/2024
2.1.121 11,936 3/3/2024
2.1.120 10,168 3/2/2024
2.1.119 1,898 3/1/2024
2.1.117 9,403 2/28/2024
2.1.116 17,639 2/25/2024
2.1.115 173 2/25/2024
2.1.114 14,503 2/21/2024
2.1.113 3,987 2/21/2024
2.1.112 2,157 2/21/2024
2.1.111 1,401 2/21/2024
2.1.110 204 2/21/2024
2.1.109 4,708 2/21/2024
2.1.108 192 2/21/2024
2.1.107 195 2/21/2024
2.1.106 11,850 2/20/2024
2.1.105 1,337 2/20/2024
2.1.104 7,791 2/19/2024
2.1.103 7,878 2/16/2024
2.1.102 5,422 2/16/2024
2.1.101 198 2/16/2024
2.1.100 5,439 2/16/2024
2.1.99 31,651 2/9/2024
2.1.98 27,842 2/7/2024
2.1.97 3,878 2/6/2024
2.1.96 2,266 2/6/2024
2.1.95 341 2/6/2024
2.1.94 217 2/6/2024
2.1.93 10,550 2/4/2024
2.1.92 78,626 1/15/2024
2.1.91 4,352 1/15/2024
2.1.90 329 1/15/2024
2.1.89 2,657 1/15/2024
2.1.88 284 1/15/2024
2.1.87 30,466 1/7/2024
2.1.86 6,051 1/5/2024
2.1.85 3,525 1/5/2024
2.1.84 318 1/5/2024
2.1.83 342 1/5/2024
2.1.82 4,370 1/5/2024
2.1.81 10,450 1/1/2024
2.1.80 394 1/1/2024
2.1.79 6,723 12/28/2023
2.1.78 3,605 12/28/2023
2.1.77 3,408 12/27/2023
2.1.76 363 12/27/2023
2.1.75 371 12/27/2023
2.1.74 4,267 12/27/2023
2.1.73 341 12/27/2023
2.1.72 362 12/27/2023
2.1.71 12,503 12/25/2023
2.1.70 734 12/25/2023
2.1.69 379 12/25/2023
2.1.68 382 12/25/2023
2.1.67 3,983 12/25/2023
2.1.66 10,287 12/24/2023
2.1.65 6,195 12/23/2023
2.1.64 1,518 12/23/2023
2.1.63 350 12/23/2023
2.1.62 4,464 12/23/2023
2.1.61 379 12/23/2023
2.1.60 342 12/23/2023
2.1.59 1,542 12/23/2023
2.1.58 349 12/23/2023
2.1.57 11,063 12/19/2023
2.1.56 3,685 12/18/2023
2.1.55 10,381 12/10/2023
2.1.51 5,234 12/10/2023
2.1.50 8,939 12/9/2023
2.1.49 391 12/9/2023
2.1.48 458 12/9/2023
2.1.47 403 12/9/2023
2.1.46 400 12/9/2023
2.1.45 427 12/9/2023
2.1.44 6,043 12/9/2023
2.1.43 9,506 12/6/2023
2.1.42 7,474 12/4/2023
2.1.41 5,006 12/4/2023
2.1.40 439 12/4/2023
2.1.39 709 12/4/2023
2.1.38 460 12/4/2023
2.1.37 12,395 11/23/2023
2.1.36 381 11/23/2023
2.1.35 613 11/23/2023
2.1.34 414 11/23/2023
2.1.33 1,666 11/23/2023
2.1.32 2,666 11/23/2023
2.1.31 7,509 11/20/2023
2.1.30 2,972 11/20/2023
2.1.29 5,401 11/19/2023
2.1.28 862 11/19/2023
2.1.27 407 11/19/2023
2.1.26 425 11/19/2023
2.1.25 395 11/19/2023
2.1.24 1,942 11/19/2023
2.1.23 8,082 11/18/2023
2.1.22 439 11/18/2023
2.1.21 2,741 11/18/2023
2.1.20 1,876 11/18/2023
2.1.19 421 11/18/2023
2.1.18 4,690 11/17/2023
2.1.17 1,202 11/17/2023
2.1.16 440 11/17/2023
2.1.15 425 11/17/2023
2.1.14 1,404 11/17/2023
2.1.13 6,373 11/17/2023
2.1.12 1,495 11/17/2023
2.1.11 414 11/17/2023
2.1.10 430 11/17/2023
2.1.9 445 11/17/2023
2.1.8 2,810 11/17/2023
2.1.7 1,339 11/16/2023
2.1.6 382 11/16/2023
2.1.5 692 11/16/2023
2.1.4 420 11/16/2023
2.0.140 4,386 11/15/2023
2.0.139 441 11/15/2023
2.0.138 421 11/15/2023
2.0.137 422 11/15/2023
2.0.136 415 11/15/2023
2.0.3 402 11/16/2023
2.0.2 425 11/16/2023
2.0.1 381 11/16/2023
1.0.135 10,062 11/10/2023
1.0.134 437 11/10/2023
1.0.133 4,954 11/9/2023
1.0.132 393 11/9/2023
1.0.131 439 11/9/2023
1.0.130 1,743 11/8/2023
1.0.129 8,935 11/6/2023
1.0.128 416 11/6/2023
1.0.127 452 11/6/2023
1.0.126 456 11/6/2023
1.0.125 3,315 11/3/2023
1.0.124 5,983 11/2/2023
1.0.123 448 11/2/2023
1.0.122 447 11/2/2023
1.0.121 423 11/2/2023
1.0.120 3,209 11/1/2023
1.0.119 16,195 10/18/2023
1.0.118 489 10/18/2023
1.0.117 474 10/18/2023
1.0.116 462 10/18/2023
1.0.115 3,568 10/17/2023
1.0.114 4,290 10/16/2023
1.0.113 475 10/16/2023
1.0.112 467 10/16/2023
1.0.111 481 10/16/2023
1.0.110 6,475 10/13/2023
1.0.109 501 10/13/2023
1.0.108 11,481 9/19/2023
1.0.107 511 9/19/2023
1.0.106 509 9/19/2023
1.0.105 466 9/19/2023
1.0.104 5,874 9/18/2023
1.0.103 510 9/18/2023
1.0.102 13,753 8/30/2023
1.0.101 566 8/30/2023
1.0.100 509 8/30/2023
1.0.99 528 8/30/2023
1.0.98 540 8/30/2023
1.0.97 10,235 8/25/2023
1.0.96 4,748 8/24/2023
1.0.95 539 8/24/2023
1.0.94 8,991 8/18/2023
1.0.93 557 8/18/2023
1.0.92 4,167 8/17/2023
1.0.91 532 8/17/2023
1.0.90 546 8/17/2023
1.0.89 15,953 8/8/2023
1.0.88 567 8/8/2023
1.0.87 5,153 8/7/2023
1.0.86 577 8/7/2023
1.0.85 565 8/7/2023
1.0.84 19,380 7/10/2023
1.0.83 625 7/10/2023
1.0.82 656 7/10/2023
1.0.81 665 7/10/2023
1.0.80 4,299 7/7/2023
1.0.79 603 7/7/2023
1.0.78 14,391 6/29/2023
1.0.77 4,012 6/28/2023
1.0.76 632 6/28/2023
1.0.75 668 6/28/2023
1.0.74 42,020 6/7/2023
1.0.73 5,626 6/7/2023
1.0.72 670 6/7/2023
1.0.71 662 6/7/2023
1.0.70 6,702 6/6/2023
1.0.69 651 6/6/2023
1.0.68 2,619 6/5/2023
1.0.67 630 6/5/2023
1.0.66 6,357 6/2/2023
1.0.65 661 6/2/2023
1.0.64 660 6/2/2023
1.0.63 25,776 5/30/2023
1.0.62 647 5/30/2023
1.0.61 7,534 5/29/2023
1.0.60 660 5/29/2023
1.0.59 6,159 5/26/2023
1.0.58 11,340 5/25/2023
1.0.57 672 5/25/2023
1.0.56 5,818 5/24/2023
1.0.55 679 5/24/2023
1.0.54 682 5/24/2023
1.0.53 659 5/24/2023
1.0.52 760 5/24/2023
1.0.51 3,828 5/23/2023
1.0.50 671 5/23/2023
1.0.49 657 5/23/2023
1.0.46 12,315 5/22/2023
1.0.45 9,945 5/18/2023
1.0.44 5,922 5/17/2023
1.0.43 654 5/17/2023
1.0.42 637 5/17/2023
1.0.41 641 5/17/2023
1.0.40 15,584 4/24/2023
1.0.39 2,219 4/24/2023
1.0.38 711 4/24/2023
1.0.37 3,674 4/21/2023
1.0.36 664 4/21/2023
1.0.35 665 4/21/2023
1.0.34 4,055 4/20/2023
1.0.33 820 4/20/2023
1.0.32 780 4/20/2023
1.0.31 3,821 4/19/2023
1.0.30 1,702 4/18/2023
1.0.29 679 4/18/2023
1.0.28 1,772 4/18/2023
1.0.27 3,060 4/17/2023
1.0.26 754 4/16/2023
1.0.25 718 4/16/2023
1.0.24 3,171 4/14/2023
1.0.23 2,330 4/13/2023
1.0.22 2,220 4/12/2023
1.0.21 702 4/12/2023
1.0.20 691 4/12/2023
1.0.19 1,560 4/11/2023
1.0.18 746 4/11/2023
1.0.17 2,385 4/11/2023
1.0.16 2,724 4/7/2023
1.0.15 3,422 4/3/2023
1.0.14 731 4/3/2023
1.0.13 718 4/3/2023
1.0.12 697 4/3/2023
1.0.11 1,900 4/1/2023
1.0.10 1,106 3/30/2023
1.0.9 844 3/26/2023
1.0.7 3,736 2/27/2023
1.0.6 741 2/26/2023
1.0.5 737 2/22/2023
1.0.4 924 2/22/2023
1.0.3 770 2/22/2023
1.0.2 1,282 2/12/2023
1.0.1 960 2/12/2023