Tips n Tracks

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color

Reference

Sample image

Microsoft .NET Framework Get Details.

Sample image

Microsoft .NET Framework Get Details.

Reference

Sample image Microsoft .NET Framework Get Details.
Sample image

Microsoft .NET Framework Get Details.


ASP.NET

Regular Expressions Hexadecimal RGB color code validation with .net


Regular Expressions Hexadecimal RGB color code validation with .net

Hexadecimal RGB color also known as Web colors are colors used in designing web pages. Authors of web pages have a variety of options available for specifying colors for elements of web documents. Colors may be specified as an RGB triplet in hexadecimal format (a hex triplet). A hex triplet is a six-digit, three-byte hexadecimal number used in HTML, CSS, SVG, and other computing applications, to represent colors. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A, B, C, D, E, F (or a through f) to represent values ten to fifteen.

We can also use three-digit hexadecimal representation of color in the form #RGB, where RGB is a a three-digit hexadecimal which is expanded to define the six-digit color where each digit is repeated once; thus #RGB defines to the color #RRGGBB.

Regular Expression Pattern

^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$

A description of the regular expression:

Beginning of line or string
A numbered capture group. [[a-fA-F0-9]{6}|[a-fA-F0-9]{3}]
Select from 2 alternatives
Any character in this class: [a-fA-F0-9], exactly 6 repetitions
Any character in this class: [a-fA-F0-9], exactly 3 repetitions
End of line or string


Read the rest of this entry »

Regular Expressions Hexadecimal number validation with .net


Regular Expressions Hexadecimal number validation with .net

In mathematics and computer science, hexadecimal (also base-16, hexa, or hex) is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A, B, C, D, E, F (or a through f) to represent values ten to fifteen.

Regular Expression Pattern

^[a-fA-F0-9]+$

A description of the regular expression:

Beginning of line or string
Any character in this class: [a-fA-F0-9], one or more repetitions
End of line or string


Read the rest of this entry »

Finding Four and(or) Six letter words using regular expressions


Finding Four and(or) Six letter words using regular expressions

In this regular expression we are going to find out All Four to Six letter words. A word is a unit (member) of language that represents a concept which can be expressively communicated with meaning. A word consists of one or more morphemes which are linked more or less tightly together, and has a phonetic value. Get more information about Finding Words using regular expressions.

Regular Expression Pattern

(?<=(?:\s|\G|\A))(\w{4}|\w{6})(?=(?:\s|\Z|\.|\?|\!))



Read the rest of this entry »

Finding Four to Six letter words using regular expressions


Finding Four to Six letter words using regular expressions

In this regular expression we are going to find out All Four to Six letter words. A word is a unit (member) of language that represents a concept which can be expressively communicated with meaning. A word consists of one or more morphemes which are linked more or less tightly together, and has a phonetic value. Get more information about Finding Words using regular expressions.

Regular Expression Pattern

(?< =(?:\s|\G|\A))\w{4,6}(?=(?:\s|\Z|\.|\?|\!))


Read the rest of this entry »

Finding Words using regular expressions


In this regular expression we are going to find out All Words. A word is a unit (member) of language that represents a concept which can be expressively communicated with meaning. A word consists of one or more morphemes which are linked more or less tightly together, and has a phonetic value.

Regular Expression Pattern

^\b\w+\b$

A description of the regular expression:

First or last character in a word
Alphanumeric, one or more repetitions
First or last character in a word

How It Works

This regular expression will check First or last character in a word. An Alphanumeric, one or more repetitions and First or last character in a word.


Read the rest of this entry »