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.


Regular Expression

Matching literal (normal) text characters with Regular Expressions


Matching literal (normal) text characters with Regular Expressions

Basically regex are used to search a character, word, string or string pattern. Here we are going to search for a single literal character. Consider we want search for "o" in the string patter "Poonam like mango". It will match the "o" after the "P". The default behavior of most regular expression engines is to return just the first match. Though this regex can match the second "o" too. Most regex implementations provide a mechanism by which we can obtain a list of all matches when the regex engine start searching through the string after the first match.


Read the rest of this entry »

What is Regular expression engines


What is Regular expression engines

The primry work of searching any regular expression pattern is done by Regular expression engines. Regular expression engines have differences based on their type and way of there working. There are mainly two Regular expression engines: Deterministic Finite Automaton (DFA) and Nondeterministic Finite Automaton (NFA). DFAs are faster, but lack many of the features of an NFA, such as capturing, look around, and non greedy quantifiers. The NFA further categories in two sub types: traditional NFA and POSIX.

Deterministic Finite Automaton (DFA) regex engines

DFAs compare each character of the input string to the regular expression, keeping track of all matches in progress. Since each character is examined at most once, the DFA engine is the fastest.


Read the rest of this entry »

What is Regular Expressions, an Introduction to Regular Expressions


What is Regular Expressions, an Introduction to Regular Expressions

Regular expressions(or regex) are a language used for more sophisticated form and text processing. They are often used to perform complex search-and-replace operations, and to validate that text data is well-formed. Regular expressions can be used to perform all sorts of powerful text processing and manipulation in just about every language and on every platform. Every regular expression either matches text (search) or matches and replaces text (search and replace).

Today, regular expressions are supported by most programming languages, as well as many scripting languages (like Perl, ASP, Visual Basic, .NET, C#, Java, JSP, PHP,Python, ColdFusion, Tcl, Ruby and many other languages), editors (EmEditor, TextPad), applications (Microsoft Word, Microsoft Excel, StarOffice, OpenOffice), databases(MySQL, SQL Server), and command-line tools.


Read the rest of this entry »