regex pattern clarification

Topics: Parsing
May 22, 2012 at 12:13 PM

I was reading the code when I reached upon the following piece of code from the Settings.Designer.cs file from the PlaystationNetworkAPI.Core.Properties namespace, for the inner text regex pattern, in th following code:

 

[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("<.*{0}.*{1}=\"{2}\".*>\\s*\\w*\\s*-*_*\\s*\\w*\\s*")]
public string Common_Parser_InnerTextRegexPattern {
    get {
        return ((string)(this["Common_Parser_InnerTextRegexPattern"]));
    }
}

I was wondering, is this "<.*{0}.*{1}=\"{2}\".*>\\s*\\w*\\s*-*_*\\s*\\w*\\s*" the pattern for inner text ?

If, so I want to know what it means exatcly if someone can explain to me please.

Thanks

Coordinator
Jul 11, 2012 at 7:10 AM

Hi aizen92,

Sorry for the time i took to respond.

Well i don't know if it answers your question but we do not use regular expression any more.

Now we are using Html Agility Pack to parse the Html code.

HTH