Last post Nov 08, 2016 05:04 PM by Rion Williams
Nov 08, 2016 01:33 PM|FoxRacoon|LINK
I've a string like this :
I'd like to fill my object. I use Regexp but the result is very Ugly.
Know an other solution that list the tag one by one without regexp ?
Nov 08, 2016 05:04 PM|Rion Williams|LINK
This looks a bit like XML, have you considered using a parser to handle this, which would store all of your values in their respective elements allowing you to access them independently :
var doc = new XmlDocument();
This may / may not work to suit your needs. If the format was always consisted though, you could consider writing a bit of custom logic to manually read in each property and store them in a custom class, which might be a bit easier to edit.