Skip to content

Implement Predicate trait with argument of regex::Regex #48

@atk91

Description

@atk91

For example, it would be very useful to search nodes with some attributes values matching regex, e.g.

for node in document.find(Attr("class", Regex::new(r"^content-.*$").unwrap())) {
   // do something
}

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