Trying to use regexp matching a value like xxx.php,i write the following code.And I also found many ways for me to escape with double backslashes, but it doesn't work either.I guess it should be a version issue.
GET /log.XXXX/_search
{
"query": {
"regexp": {
"uri_path": "@(\\.php)"
}
}
}
Of course, the following code can match the result I want, but I think that @ matches the special character .
GET /log.XXXX/_search
{
"query": {
"regexp": {
"uri_path": "@(php)"
}
}
}
So sincerely hope to get your suggestions