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.

4
  • It didn't work. When I run it, It stops on sExtract = M.SubMatches(1) and if I hold the cursor over it, I get <invalid procedure call or argument> and .pattern is <object variable or with block variable not set> the only thing I changed is the pattern. Commented Oct 15, 2015 at 14:14
  • I just realized you thought I was tring to extract PCDATA which is not the case. I've updated my question. Commented Oct 15, 2015 at 14:42
  • Your edited question is still confusing to me. You have lines like <!ELEMENT x (y)>. What do you want to get? x, y or both? Commented Oct 15, 2015 at 14:49
  • I want to get x if there isn't a + if there is, I want to get y without the + Commented Oct 15, 2015 at 15:02