Haven't tried the event parser, but if only capturing the needed text I usually 
use `find` proc
    
    
    var buffer = newseq[string](10) # crash if the seq not enough
    if example =~ grammar:
      discard example.find(grammar, buffer)
      echo buffer
    
    # will print
    # ["1", "2", "3", "", "", "", "", "", "", ""]
    
    
    Run

Reply via email to