matchRegex method

PostgrestFilterBuilder<T> matchRegex(
  1. String column,
  2. String pattern
)

Finds all rows whose value in the stated column matches the supplied pattern using PostgreSQL regular expression (case sensitive).

await supabase
    .from('users')
    .select()
    .matchRegex('username', '^sup.*');

Implementation

PostgrestFilterBuilder<T> matchRegex(String column, String pattern) {
  return copyWithUrl(appendSearchParams(column, 'match.$pattern'));
}