I have the following table in postgres:
Table "public.items"
Column | Type | Collation | Nullable | Default
-------------+--------------------------+-----------+----------+---------------------------------------
id | integer | | not null | nextval('items_id_seq'::regclass)
wildcard | character varying(255) | | not null |
The wildcard column value contains wildcards of the form:stackoverflow*.
This should match any word that begins with 'stackoverflow'.
How can I locate the record that contains the a matching wild card?
For example, given 'stackoverflow.com' I would like to return all wildcards matching it.
something like