UtilRegExPatterns Class

A class that exposes common RegEx patterns.

Definition

Namespace: DevCase.Core.DataProcessing.RegEx
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class Patterns
Inheritance
Object    UtilRegExPatterns

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Fields

AlphabeticText A pattern that matches alphabetic text.
AlphanumericText A pattern that matches Alphanumeric text.
CreditCard A pattern that matches a valid credit card number, VISA or also a passport.

For Example:

EMail A pattern that matches an e-mail address.

For Example:

local@domain.com

ExcludeDashInFilename A pattern that matches any filename that does not contain a dash character (-).

For Example:

Match: "Everybody.mp3"

Don't Match: "Every-body.mp3"

ExcludeDashInString A pattern that matches any string that does not contain a dash character (-).

For Example:

Match: "Everybody"

Don't Match: "Every-body"

ExcludeUnderscoreInFilename A pattern that matches any filename that does not contain a underscore character (_).

For Example:

Match: "Everybody.mp3"

Don't Match: "Every_body.mp3"

ExcludeUnderscoreInString A pattern that matches any string that does not contain a underscore character (_).

For Example:

Match: "Everybody"

Don't Match: "Every_body"

Hex A pattern that matches Hexadecimal values.

For Example:

#a3c113

HtmlTag A pattern that matches the content of an Html enclosed tag.
Ipv4 A pattern that matches an IPv4 address.

For Example:

127.0.0.1

Ipv6 A pattern that matches an IPv6 address.

For Example:

FE80:0000:0000:0000:0202:B3FF:FE1E:8329

NumericText A pattern that matches numeric text, integer or decimal.
Phone A pattern that matches a Phone number.

Number in the following form: (###) ###-####

SafeText A pattern that matches lower and upper case letters and all digits.

For Example:

Url A pattern that matches an URL.

For Example:

http://url or ftp://url

USphone A pattern that matches an United States phone number with or without dashes.

For Example:

USssn A pattern that matches a 9 digit United States social security number with dashes.

For Example:

USzip A pattern that matches an United States zip code with optional dash-four.

For Example:

YoutubeUrl A pattern that matches a Youtube Url.

For Example:

https://www.youtube.com/watch?v=Hzmn4-vtl5M&feature=em-uploademail

http://www.youtube.com/attribution_link?a=Od7TH6HFkco&u=/watch?v%3DHzmn4-vtl5M%26feature%3Dem-uploademail

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also