Match special pattern

I have a question about how to parse the pattern: "hString(4 digit numbers)"

  • Start with h
  • follow by any string
  • number in brackets

I want to parse the brackets. Can some one help me to figure out the problem?
GET /_search { "query": { "regexp":{ "pattern": "h@\([0-9]{4}\)" } } }

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