Skip to content

Regex matching yields "Unexpected end of JSON input" #92

@yfrolov

Description

@yfrolov

Hello,

I tried to use $regex in $match stage but it does not seem to work. E.g.:

db.collection.aggregate([
	{ "$match": { "title": { "$regex": ".*(AB[0-9]{4,6}).*", "$options": "si" } } }
])

I am getting the error in Grafana:

status:500
statusText:"Internal Server Error"
data:Object
  message:"Unexpected end of JSON input"
message:"Unexpected end of JSON input"

Is there any way to make it work?

Thank you in advance.

Metadata

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