Whats a good way to only parse certain parts of text? #1390
Unanswered
RobertCraigie
asked this question in
Q&A
Replies: 1 comment 6 replies
-
See this small example I created: #1371 (comment) It's not currently built into lark, but I created a small proof-of-concept that adds it to lark. If you find it useful, we could look into adding it. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, I want to parse input that looks like this
or
But I only care about:
@Foo
in the text()
following the@Foo()
are validIs there a builtin way to do this easily with Lark? If not, is there a better approach than to just regex match for
@Foo(...)
and only pass that to Lark?Beta Was this translation helpful? Give feedback.
All reactions