Skip to content

support searching across multiple lines #176

@isobit

Description

@isobit

Say for example I'm trying to find instances of click that reside in a listeners block, like so:

listeners: {
    foo: ...
    click: ....
}

According to the Rust regex docs, I should be able to do: rg '(?s)listeners.+click', but this doesn't seem to work. Does ripgrep not support multiline regex?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn enhancement to the functionality of the software.libripgrepAn issue related to modularizing ripgrep into libraries.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions