Monday, February 20, 2023

Using variable in Regex pattern

 Below is sample code for it:

"x": {"$regex":new RegExp(y,"i")}

No comments:

Post a Comment