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
  • 1
    Since you've defined before in such a way that it parses any text, you shouldn't be surprised. Commented Oct 11, 2016 at 21:53
  • But why doesn't it backtracks? Or to put it in another way: How to define a parser that parses aaaaxxxbbb as well as xxxxxxxbbb? (But keeping in mind, that I might have multiple "keyword" for content in the future other than xxx, and I wouldn't want to list them all if possible) Commented Oct 11, 2016 at 22:07
  • 2
    Why should it backtrack? It doesn't fail! Commented Oct 11, 2016 at 23:34