[MongoDB] 如何搜尋特定開頭的資料 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 2月 01, 2023 範例 利用 regex 搜尋 invoice_id 是 AR 開頭的 record: db.paymentRecords2.find({invoice_id:{$regex: /^AR/ }}).limit(10) 參考資料 https://stackoverflow.com/questions/53469514/mongodb-regex-string-startswith-and-endswith Read more »