• $ cat "

    Lazy Regex in Visual Studio

    "

    For some reason everyone who implements a regex engine feels the need to tweak the syntax so that nobody feels at home. Worst of all regex implementations is the Visual Studio one.

    Here is a little reminder of the VS lazy regex syntax.


    /*

    | Posix | Visual studio |
    |-------+---------------|
    | .*? | .@ |
    | .+? | .# |

    */