Original Post
I'm working on a simple ConfigurationManager class in C# for my game engine. The format of the config file is similar to that of INI files. Here is a sample line from my config file:
Quote:The key name (enclosed in [ and ]) should not contain spaces. Only lower-case a-z, 0-9, and periods. Multiple spaces OR tabs should follow the key name, and the key value may contain anything except tabs. I'm horrible with regular expressions, especially C# regex, because I don't know it very well and most of the sites that talk about it are very confusing. Can anyone tell me what the regular expression would be for that? Also, is it possible to extract information from a regular expression using the Regex class? I would like to extract the key name and key value, so I may use it somewhere else. Thanks!
[screen.resolution] 800x600