Page Contents

Home > @loopback/filter > WhereBuilder > regexp

WhereBuilder.regexp() method

Add a regexp condition

Signature:

regexp<K extends KeyOf<MT>>(key: K, val: string | RegExp): this;

Parameters

Parameter Type Description
key K Property name
val string | RegExp Regexp condition

Returns:

this