Original Post
Hi, I'm trying to load Anim8or files using the RegEx class, but I'm not having much success(I really have no idea what I'm doing). I have a loader that works by reading in and trimming / splitting the strings "manually", but I'd like something a little cleaner. Anyway this is what I'm trying to parse:
header {
version { "0.95" }
build { "2007.04.02" }
}
object {
name { \"Bob\" }
}
It's basically a chunk name with brackets and data / sub-chunks inside. My current expression is "\w+\s+\{.*?\}"(in .NET), but it stops right on the first } so it returns "header { version { \"0.95\" }". I'd like an expression that returns at first two strings, the header and the object chunks. Any help is appreciated.