Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
db={"products":[{"name":"product A","product":"ABC-123"},{"name":"product B","product":"ABC123"},{"name":"product C","product":"ABC-123"}]}
Query
db.products.find({"product":{"$regex":"^ABC(?:.*?)\\d+$"}})
Result