Soenneker.Extensions.String 2.1.153

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.153
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.153
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.153" />
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.153
#r "nuget: Soenneker.Extensions.String, 2.1.153"
#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.153

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

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

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.153 16,926 4/28/2024
2.1.152 62 4/28/2024
2.1.151 5,394 4/28/2024
2.1.150 63 4/28/2024
2.1.149 61 4/28/2024
2.1.148 564 4/28/2024
2.1.147 62 4/28/2024
2.1.146 62 4/28/2024
2.1.145 4,398 4/27/2024
2.1.144 77 4/27/2024
2.1.143 61 4/27/2024
2.1.142 28,453 4/12/2024
2.1.141 82 4/12/2024
2.1.140 3,485 4/12/2024
2.1.139 89 4/12/2024
2.1.138 75 4/12/2024
2.1.137 2,878 4/12/2024
2.1.136 78 4/12/2024
2.1.135 73 4/12/2024
2.1.134 75 4/12/2024
2.1.133 18,902 4/1/2024
2.1.132 13,482 3/25/2024
2.1.131 15,045 3/18/2024
2.1.130 147 3/18/2024
2.1.129 263 3/18/2024
2.1.128 14,172 3/13/2024
2.1.127 136 3/13/2024
2.1.126 134 3/13/2024
2.1.125 1,489 3/13/2024
2.1.124 123 3/13/2024
2.1.123 122 3/13/2024
2.1.122 28,140 3/8/2024
2.1.121 11,929 3/3/2024
2.1.120 10,164 3/2/2024
2.1.119 1,894 3/1/2024
2.1.117 9,398 2/28/2024
2.1.116 17,630 2/25/2024
2.1.115 169 2/25/2024
2.1.114 14,499 2/21/2024
2.1.113 3,983 2/21/2024
2.1.112 2,153 2/21/2024
2.1.111 1,396 2/21/2024
2.1.110 200 2/21/2024
2.1.109 4,704 2/21/2024
2.1.108 188 2/21/2024
2.1.107 191 2/21/2024
2.1.106 11,839 2/20/2024
2.1.105 1,332 2/20/2024
2.1.104 7,787 2/19/2024
2.1.103 7,873 2/16/2024
2.1.102 5,413 2/16/2024
2.1.101 194 2/16/2024
2.1.100 5,434 2/16/2024
2.1.99 31,641 2/9/2024
2.1.98 27,832 2/7/2024
2.1.97 3,874 2/6/2024
2.1.96 2,261 2/6/2024
2.1.95 338 2/6/2024
2.1.94 214 2/6/2024
2.1.93 10,544 2/4/2024
2.1.92 78,613 1/15/2024
2.1.91 4,349 1/15/2024
2.1.90 326 1/15/2024
2.1.89 2,654 1/15/2024
2.1.88 281 1/15/2024
2.1.87 30,460 1/7/2024
2.1.86 6,045 1/5/2024
2.1.85 3,522 1/5/2024
2.1.84 315 1/5/2024
2.1.83 339 1/5/2024
2.1.82 4,367 1/5/2024
2.1.81 10,449 1/1/2024
2.1.80 393 1/1/2024
2.1.79 6,722 12/28/2023
2.1.78 3,605 12/28/2023
2.1.77 3,405 12/27/2023
2.1.76 363 12/27/2023
2.1.75 371 12/27/2023
2.1.74 4,264 12/27/2023
2.1.73 341 12/27/2023
2.1.72 362 12/27/2023
2.1.71 12,500 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,284 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,496 12/6/2023
2.1.42 7,470 12/4/2023
2.1.41 5,005 12/4/2023
2.1.40 438 12/4/2023
2.1.39 708 12/4/2023
2.1.38 460 12/4/2023
2.1.37 12,388 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,398 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,939 11/19/2023
2.1.23 8,082 11/18/2023
2.1.22 439 11/18/2023
2.1.21 2,739 11/18/2023
2.1.20 1,874 11/18/2023
2.1.19 421 11/18/2023
2.1.18 4,671 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,370 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,380 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,056 11/10/2023
1.0.134 437 11/10/2023
1.0.133 4,944 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,930 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,189 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,279 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,465 10/13/2023
1.0.109 501 10/13/2023
1.0.108 11,476 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,869 9/18/2023
1.0.103 510 9/18/2023
1.0.102 13,752 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,230 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,943 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,369 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,385 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,010 6/7/2023
1.0.73 5,621 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,352 6/2/2023
1.0.65 661 6/2/2023
1.0.64 660 6/2/2023
1.0.63 25,775 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,335 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,583 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,420 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,099 3/30/2023
1.0.9 844 3/26/2023
1.0.7 3,731 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 958 2/12/2023