Regular expression for validating a number reena dutta dating

18-Jul-2017 00:56

In the last five decades, regular expressions have slowly made their way from mathematic obscurity to a staple feature of many tools and software packages.

While regular expressions were supported by many UNIX tools for decades, it was only in the last decade or so that they have found their way into most Windows developers' toolkits.

NET there are controls that rely on the language of regular expressions.

This article covers the basics and recommends where to go to learn more. I hope it will also make a handy reference/refresher for developers who have used regular expressions before, in conjunction with my regular expression cheat sheet.

Of course, matching exact strings to themselves is a trivial implementation of regular expressions, and doesn't begin to reveal their power.

Below are some sample patterns and inputs they would match.

Now you've gone beyond what literal strings can do (within reason)—it's time to learn some more about regular expressions.