Mongo DB regex code

Report a typo

Write a regex search request, using // regex construction, to get all the wines from Australia from the collection Wines below. Your request should be case-insensitive.

[
  {       
    "id": "chard23",
    "name" : "Chardonnay ",
    "region" : "Toskana",
    "description" : "strong flavour with blueberry strings and smokey aroma"
  },
  {      
    "id": "shrz89",
    "name" : "Shiraz",
    "region" : "Australia",
    "description" : "old and full-bodied, with aromatic notes of smoke, black fruit and pepper spice."
  },
  {      
    "id": "svng23",
    "name" : "Sauvignon",
    "region" : "France",
    "description" : "flavor characteristics range from green herbaceous notes to ripe stone fruits.",
  },
  {
    "id": "cbrnt56",
    "name" : "Cabernet",
    "region" : "france",
    "description" : " Aromas and notes of fresh picked blueberries. Semi-Sweet wine.",
  }
]    
Enter a short text
___

Create a free account to access the full topic