You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Regular expression in mongoDB

Summary:


Content (please ensure you mask any confidential information):

Hello,

We would like to have a regular expression in mongoDB.

We now have:

SHELF_TYPE :{$regex:"|****_ShelfType|"}

But we would like to concatenate them a prefix and a postfix to the regular expression.

For example if ****_ShelfType has value "prova", we would like to extract from the table only the elements that have [PROVA] and not [PROVA_1].

Is there a way to do it?

Thank you,

Silvia

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!