Pandatech.RegexBox 3.0.1

Suggested Alternatives

Pandatech.SharedKernel

Additional Details

This NuGet package has been deprecated and is no longer maintained. Its functionality has been consolidated into the Pandatech.SharedKernel package. There are no known bugs — all existing features have simply been moved to a larger, more comprehensive package.

Please update your projects to reference the new package going forward.

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Pandatech.RegexBox --version 3.0.1
                    
NuGet\Install-Package Pandatech.RegexBox -Version 3.0.1
                    
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="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pandatech.RegexBox" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Pandatech.RegexBox" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pandatech.RegexBox --version 3.0.1
                    
#r "nuget: Pandatech.RegexBox, 3.0.1"
                    
#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.
#addin nuget:?package=Pandatech.RegexBox&version=3.0.1
                    
Install Pandatech.RegexBox as a Cake Addin
#tool nuget:?package=Pandatech.RegexBox&version=3.0.1
                    
Install Pandatech.RegexBox as a Cake Tool

Pandatech.RegexBox

Pandatech.RegexBox is a highly performant and robust C# library designed to simplify complex regex validations for various data formats. With 100% test coverage and a focus on security through a 50ms regex execution timeout, it's an ideal solution for applications requiring reliable and efficient data validation.

Usage

To use Pandatech.RegexBox, simply add a reference to the package in your project and call the desired static validation methods:

using Pandatech.RegexBox;

// URI validation
bool isValidUri = PandaValidator.IsUri("http://example.com", allowNonSecure: false);

// US Social Security Number validation
bool isValidSsnUs = PandaValidator.IsUsSocialSecurityNumber("123-45-6789");

// Email validation
bool isValidEmail = PandaValidator.IsEmail("user@example.com");

// Username validation
bool isValidUsername = PandaValidator.IsUsername("user123");

// Armenian Social Security Number validation
bool isValidSsnAm = PandaValidator.IsArmeniaSocialSecurityNumber("12345678912");

//ArmenianIDCard validation
bool isValidArmenianIdCard = PandaValidator.IsArmeniaIdCard("AN1234567");

// Armenian Passport validation
bool isValidArmenianPassport = PandaValidator.IsArmeniaPassport("AN1234567");

// Armenian Tax code validation
bool isValidArmenianTaxCode = PandaValidator.IsArmeniaTaxCode("12345678");

// Panda Formatted Phone Number validation
bool isValidPhoneNumber = PandaValidator.IsPandaFormattedPhoneNumber("(374)94810553");

// Armenian State Registration Number validation
bool isValidArmenianStateRegistrationNumber = PandaValidator.IsArmeniaStateRegistryNumber("123.456.78");

// Panda formatted phone number validation

bool isValidPandaFormattedPhoneNumber = PandaValidator.IsPandaFormattedPhoneNumber("(374)94810553");

// Guid validation
bool isValidGuid = PandaValidator.IsGuid("12345678-1234-1234-1234-123456789012");

// IPv4 validation
bool isValidIpv4 = PandaValidator.IsIPv4("192.168.1.1");

// IPv6 validation
bool isValidIpv6 = PandaValidator.IsIPv6("2001:0db8:85a3:0000:0000:8a2e:0370:7334");

// Any IP validation
bool isValidIp = PandaValidator.IsIpAddress("192.168.1.1");

// Json validation
bool isValidJson = PandaValidator.IsJson("{\"name\":\"John\", \"age\":30}");

// and many more...

License

PandaTech.RegexBox is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated

nuget updates