Skip to content

Issue with backslash-escaping regexp contet #174

Open
@anon292

Description

I'm writing some elisp code that relies on ag-project-regexp and ag/search functions. It includes a line like this:

(ag-project-regexp (format "fn.* %s" fn-name))

The goal is to search for strings such as fn[something] fn-name (function definitions). However, the ag command includes fn.\* fn-name. The regexp is not surrounded by quotes and/or a backslash is inserted before the * character, resulting in behavior different than expected. I'm probably doing something wrong, but what?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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