Pandatech.RegexBox 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pandatech.RegexBox --version 1.1.0                
NuGet\Install-Package Pandatech.RegexBox -Version 1.1.0                
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="Pandatech.RegexBox" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pandatech.RegexBox --version 1.1.0                
#r "nuget: Pandatech.RegexBox, 1.1.0"                
#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 Pandatech.RegexBox as a Cake Addin
#addin nuget:?package=Pandatech.RegexBox&version=1.1.0

// Install Pandatech.RegexBox as a Cake Tool
#tool nuget:?package=Pandatech.RegexBox&version=1.1.0                

Pandatech.RegexBox

Introduction

Pandatech.RegexBox is a .NET library that provides a set of regular expressions for common data validation tasks. It includes regex patterns for validating email addresses, usernames, URLs, IP addresses (both IPv4 and IPv6), US Social Security Numbers, and Armenian Social Security Numbers.

Features

  • Email Validation: You can use the PandaValidator.IsEmail(string email) method to check if a given string is a valid email address.
  • Username Validation: The library provides the PandaValidator.IsUsername(string userName) method to validate usernames according to a defined pattern.
  • URL Validation: You can validate URLs using the PandaValidator.IsUri(string uri, bool allowWildcards, bool allowNonSecure) method. It supports wildcards and secure/non-secure URLs.
  • IP Address Validation: The library offers methods to validate both IPv4 and IPv6 addresses using PandaValidator.IsIpAddress(string ip, bool isIpv4).
  • US Social Security Number Validation: The PandaValidator.IsUsSocialSecurityNumber(string number) method allows you to check if a string matches the pattern for a US Social Security Number.
  • Armenian Social Security Number Validation: You can validate Armenian Social Security Numbers using PandaValidator.IsArmenianSocialSecurityNumber(string socialCardNumber).

How to Use

Here's an example of how to use Pandatech.RegexBox for email validation:

using Pandatech.RegexBox;

string email = "example@email.com";
if (PandaValidator.IsEmail(email))
{
    Console.WriteLine("Valid email address.");
}
else
{
    Console.WriteLine("Invalid email address.");
}

Note

  • The library is designed for easy integration into your .NET projects.
  • The library has best performance and security practices in mind.
  • This library has 100% code coverage.
  • Will be ongoing updated and maintained.

License

PandaTech.RegexBox is licensed under the MIT License.

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.
  • net8.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Pandatech.RegexBox:

Package Downloads
Pandatech.Crypto

PandaTech.Crypto is a .NET library simplifying common cryptograhic functions.

Pandatech.PandaVaultClient

Pandatech.PandaVaultClient is a .NET library helping to retrieve configurations from PandaVault.

Pandatech.Communicator

A versatile .NET library for integrating SMS and email functionalities. Supports multiple SMS providers and easy configuration through appsettings.json or web builders, ideal for efficient and reliable messaging in any application..

Pandatech.SharedKernel

Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 174 11/21/2024
2.0.1 179 8/15/2024
1.2.4 603 2/13/2024
1.2.3 884 1/29/2024
1.1.4 537 12/1/2023
1.1.3 414 11/29/2023
1.1.2 394 11/29/2023
1.1.1 376 11/24/2023
1.1.0 417 11/23/2023
1.0.0 419 11/3/2023

.net 8 update