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.


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.

Traditional Nondeterministic Finite Automaton (NFA) engines

Traditional NFA engines compare each element of the regex to the input string, keeping track of positions where it chose between two options in the regex. If an option fails, the engine backtracks to the most recently saved position.

POSIX NFA engines

POSIX NFA Engines work similarly to Traditional NFAs with one exception: a POSIX engine always picks the longest of the leftmost matches. The POSIX standard requires that if you have multiple possible matches that start at the same position, the one matching the most text must be the one returned.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

[...] What is Regular expression engines [...]

Pingback by Text and Data Manipulation with Regular Expressions in .NET Development | Tips n Tracks on November 21, 2009 @ 11:23 am

Leave a comment

(required)

(required)

*
To prove that you're not a bot, enter this code
Anti-Spam Image