Suppose I have a line:
"my event took place in New York on Broadway in 1976"
I have many such lines, but places and dates are changing. For instance:
"my event took place in Boston on 2nd Street in 1998." "my event took place in Ann Arbor in Ushtenau in 1968."
so the general view: "my event occurred in X on Y in Z"
I would like to parse a string to extract X, Y and Z
I could use Split and use the sentinels "in", "on" to demarcate the token I want, but that seems awkward. But using a full parser / lexer, such as grammatica, seems heavyweight.
Recommendations will be gratefully accepted.
Is there a "simple" parser lexer for C #?
user236520
source
share