Category Archives: Regular Expression

Regex Hero: Free online regular expression tester

A regex tester is one of those tools developers often need. I used many different ones over the years and  have never settled on one that I really like.  I have seen some paid ones that looked promising but I … Continue reading

Posted in Regular Expression, Tools | Leave a comment

Inline Regular Expression Options

I was using attributes from the System.ComponentModel.DataAnnotations   namespace for model validation.  This namespace includes a few very useful validation attributes such as Required Attribute – Validates the field has a va…

Posted in C#, Regular Expression | Leave a comment

Writing a Regular Expression parser in Haskell: Part 4

With the previous two modules in place we are now set up to use a DFA to match against a string.  In my implementation I support either a greedy match or an short match.  In a full featured regular expression … Continue reading

Posted in Haskell, Regular Expression | Leave a comment

Writing a Regular Expression parser in Haskell: Part 3

The third module in the simple regular expression parser is called: NFAtoDFA.  Which as you might have guessed, takes the NFA that resulted from the first module and converts it into a DFA.  The structure that the DFA uses is … Continue reading

Posted in Haskell, Regular Expression | Leave a comment

Writing a Regular Expression parser in Haskell: Part 2

The first module in my simple regular expression parse is called RegexToNFA.  This module exposes the types that make up a finite state machine and also the functions to convert a regular expression string into a finite state machine. My … Continue reading

Posted in Haskell, Regular Expression | Leave a comment