Techiio-author
Started by Swarnalata RoydebMay 13, 2022

Open
I want regex search with nest object!

2 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 2 VIEWES SHARE

Example document

_id:"54546554655"

pathFile:{

zipfile: "2022-09-01.txt"

}

expect result pathFile.zip file with 2022-any-any

can anyone help me with this query?

1 Replies

Techiio-commentatorTanmay Banerjee replied 2 days ago0 likes0 dislikes

javaScript use regex with two different methods 1> search() 2> replace().

let text1 = "Visit W3Schools";
let n = text1.search(/w3schools/i);

const pattern = /e/;
pattern.test("The best things in life are free!");

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance