Skip to content

Regular expression matching in tquery() / PERL? #27

@ChRauh

Description

@ChRauh

Hi,

Thanks for another extremely useful toolbox! (academic love letters here)

I'm now working on a somewhat complex tree query in which I match certain lemmas with a regular expression (using the "__R" flag).
I realized that base R's TRE regex flavor is used under the hood which, however, doesn't support the negative lookahead that I require in my specific application.

Is it possible to switch to perl = TRUE somewhere?

I have naively tried to set this option within tquery() or annotate_tqueries() downstream but this apparently doesn't work.

Any hints would be greatly appreciated (even if the answer is "not possible".

Many thanks,
Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions