I need a javascript regex pattern to test a schema variable, so that it should have either of the following.
- It can start with any character followed by "_water_glass" and must not be anything after water_glass like "xxxx_water_glass"
or
- It can be just "water_glass" not necessary to have character before water_glass and must not be anything after water_glass.
Could anyone help on this please to get the regex pattern.