Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 4
    Depends on how "well" you need to do it. If you can only have a maximum of one level nesting you could write a complex(ish) regex for this, if you can have arbitrary levels of nesting, you'll need a scripting language. Commented Nov 15, 2013 at 4:02
  • max 1 level would be a start and might suffice for most cases. Commented Nov 15, 2013 at 4:35
  • I think there is errors in some of the first set of examples. Commented Nov 15, 2013 at 8:56