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.


C# Language

Finding First line in the text using regular expressions with .net


Finding First line in the text using regular expressions with .net

In this regular expressions, we are going to find first line in the text.

Regular Expression Pattern

\A.*

A description of the regular expression:

Beginning of string
Any character, any number of repetitions

How It Works

This regular expression will check for Beginning of line followed by Any character.


Read the rest of this entry »

Finding each line in the text using regular expressions with .net


Finding each line in the text using regular expressions with .net

In this regular expressions, we are going to find each line in the text.

Regular Expression Pattern

^.*$

A description of the regular expression:

Beginning of line or string
Any character, any number of repetitions
End of line or strin

Sucessful Matches

This is a test.
What you want?
That’s great!
as shown below:


Read the rest of this entry »

Finding Sentence using regular expressions with .net


Finding Sentence using regular expressions with .net

In the field of linguistics, a sentence —an expression in natural language— is often defined to indicate a grammatical and lexical unit consisting of one or more words that represent distinct concepts. A sentence can include words grouped meaningfully to express a statement, question, exclamation, request or command.

All the sentences contins group of words ending with .(punctuation mark), ?(question mark), !(exclamation mark) or : (colon) etc. In this regular expression we are going to find out sentences, means group of words ending with .(punctuation mark), ?(question mark), !(exclamation mark) or : (colon) etc.

Regular Expression Pattern

(?sx-m)[^\r\n].*?(?:(?:\.|\?|!|\:)\s)

A description of the regular expression:

Change options within the enclosing group [sx-m]
Turn OFF Multiline option
Turn ON Single Line option
Turn ON Ignore Pattern Whitespace option
Any character that is NOT in this class: [\r\n]
Any character, any number of repetitions, as few as possible
Match expression but don’t capture it. [(?:\.|\?|!|\:)\s]
(?:\.|\?|!|\:)\s
Match expression but don’t capture it. [\.|\?|!|\:]
Select from 4 alternatives
Literal .
Literal ?
!
Literal :
Whitespace


Read the rest of this entry »

Finding Similar Words (like bat, cat, mat)using regular expressions with .net


Finding Similar Words (like bat, cat, mat)using regular expressions with .net

In this regular expression we are going to find out Similar Words like bat, cat, mat, and rat. Just take a look at above words they all same ending "at".

Regular Expression Pattern

\b[a-zA-Z](at\b)

A description of the regular expression:

First or last character in a word
Any character in this class: [a-zA-Z]
[1]: A numbered capture group. [at\b]
at\b
at
First or last character in a word


Read the rest of this entry »

Getting Started with C# Object-Oriented Programming


Getting Started with C# Object-Oriented Programming

C# is a powerful and flexible programming language provides several features. Like all programming languages, it can be used to create a variety of applications. C# is an object-oriented programming language developed by Microsoft as part of the .NET Visual Studio and later approved as a standard by ECMA and ISO.

Object-oriented programming (OOP) introduced the concept of classes and objects in the early ’90s. In 1962 "SIMULA 1" and in 1967 " SIMULA 67" used the concept of Object-oriented programming and these are the two earliest object – oriented languages. Even though most of the advantages of OOP were available in the earlier Simula languages, it wasn’t popular till the evolution of C++. The C++ is a very powerful object oriented language; it is in fact a mixture of both methodologies, the traditional and OOP approaches. However, with that power comes with a lot of complexity. Language developers wanted a simpler and perhaps less complex language for OOP development.


Read the rest of this entry »