Azure, DevOps and .NET articles

Empowering developers since 2015. Real articles, real insights.

DotNet61 Azure45 DevOps35 JavaScript23 VisualStudio17 CSS12 Jekyll8 Git8 All topics →

    Use a variable as a regex to find all matches in a string

    Often I have to use a value from a variable and not a fixed string inside a regular expression. For example if I wanted to iterate over the English alphabet and find the number of occurrences of each letter inside a string, I had to do something like the following:

    var testString = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr.";
    var matches = testString.match(/a/g).length;
    // do this for all the remaining letters
    

    the previous example would work and would find all occurrences of “a”.

    Read the complete article

    Fix the ERRCA0009, ERRCA0017, and ERRCA0021 errors in AppFabric cache

    In this article you can find the most common solutions to three error codes of the AppFabric distributed cache.

    Read the complete article