Regular expression won't work when next to character that's been escaped

I'm trying to create a saved search and I have a field called "pipe_name" and I need to find every time it equals [back slash][six lower case characters]. An example is \qudpcg.

this query finds \qudpcg:

{
  "query": {
    "regexp": {
      "pipe_name": {
        "value": "\\q[a-z]{5}"
      }
    }
  }
}

This Query doesn't return anything

{
  "query": {
    "regexp": {
      "pipe_name": {
        "value": "\\[a-z]{6}"
      }
    }
  }
}`

I can't get any regular expression or wildcard to work after the "\\", any thoughts?

What kind of query are you doing? Have you tried asking in the Elasticsearch forums?

thank for the suggestion Lukas I'll move to there. To answer your question I was using a DSL query in Kibana's discovery pane.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.