Skip to content

Filter text ignoring case #371

@ARandomPerson07

Description

@ARandomPerson07

Feature Request

When using the filter_by_text_contains or filter_by_text_equals, it would be nice to be able to have a parameter ignore_case which allows for caseless matching.

For example, currently filtering by "CONTENT" and "Content" returns two different sets of elements.

image

When processing less uniform PDFs, hard-coding the correct case is difficult (most commonly, such headers are either in sentence case or all-caps), and currently the workaround I am using is to chain together or logic with multiple versions of the string:

image

But this seems like a much more inefficient way of going about it than being able to directly access the element texts and using casefold() to match them.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions