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.


Archive for June, 2009

Finding words or String with same beginning and end using regular expressions with .net


Finding words or String with same beginning and end using regular expressions with .net

In this regular expression we are going to find words or String with same beginning and end. Means we are going to search words like xerox with same beginning and end "x".

Regular Expression Pattern

\b(?<First>\w{1,})(?<Second>\w+)(?(Second)\k<First>)\b

A description of the regular expression:

  First or last character in a word
  [First]: A named capture group. [\w{1,}]
      Alphanumeric, at least 1 repetitions
  [Second]: A named capture group. [\w+]
      Alphanumeric, one or more repetitions
  Conditional Expression with "Yes" clause only
      Did the capture named [Second] match?
      If yes, search for [\k<First>]
          Backreference to capture named: First
  First or last character in a word

Sucessful Matches

xerox
404
rotor
rotor
ISAPI


Read the rest of this entry »

Finding all words starting with “re” using regular expressions with .net


Finding all words starting with "re" using regular expressions with .net

In this regular expression we are going to find all words starting with "re". Means we are going to search words beginning(first two character) will be "re".

Regular Expression Pattern

(\bre)\w+\b

A description of the regular expression:

[1]: A numbered capture group. [\bre]
\bre
First or last character in a word
re
\w+\b
Alphanumeric, one or more repetitions
First or last character in a word

Sucessful Matches

replace
regex
regular


Read the rest of this entry »

Finding all words ending with “ing” using regular expressions with .net


Finding all words ending with "ing" using regular expressions with .net

In this regular expression we are going to find all words ending with "ing". Means we are going to search words ending(last three character) will be "ing".

Regular Expression Pattern

\b\w+(ing\b)

A description of the regular expression:

\b\w+
First or last character in a word
Alphanumeric, one or more repetitions
[1]: A numbered capture group. [ing\b]
ing\b
ing
First or last character in a word

Sucessful Matches

processing
programming
scripting


Read the rest of this entry »