Regular Expression Library

The Regular Expression Library lists a lot of common used expressions. You’ll also find a handy expression-tester in there.

Regular Expressions are used for searching and parsing of text and is a powerful feature, implemented in most programming and scripting languages.

I tend to get dizzy over this stuff, so next time I need to do a regular expression that somehow can be generalized into a common task, this site would be my first shot.

Example: This regular expression matches a six character “password” that has to consist of numbers and letters with at least one letter in it:

     ^(?![0-9]{6})[0-9a-zA-Z]{6}$

I know — it’s not easy to read. See A Tao of Regular Expressions for an introduction. And there’s also a RegExp weblog.

3 kommentarer til “Regular Expression Library”

  1. emme siger:

    Freak!

  2. dalager siger:

    Hey!
    I said ‘Dizzy’, not ‘Horny’.
    But I know some people, and if you want to, I can introduce you?

  3. emme siger:

    Jeg står ved min udtalelse, og understreger at det skulle forstås som ‘nørd’. Og naturligvis skriver jeg her på dansk, udaf respekt for dit nye tiltag :)

Skriv en kommentar

Hvad er 2 plus 2? (antispam spørgsmål...)