add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
records
(
id int
, pattern text
);

INSERT INTO
records (id, pattern)
VALUES
(1, 'https://*.google.com')
, (2, 'https://google.com/*')
, (3, 'https://go*g*.com')
;

SELECT
*
FROM
records
WHERE
'https://google.com/lorem_ipsum' LIKE REPLACE(pattern, '*', '%')
;
id pattern
2 https://google.com/*