Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

isbn-cleanup.sql 273 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
  1. CREATE OR REPLACE FUNCTION extract_isbn(raw_isbn VARCHAR) RETURNS VARCHAR
  2. LANGUAGE SQL IMMUTABLE PARALLEL SAFE COST 5
  3. AS $$
  4. SELECT upper(regexp_replace(substring(raw_isbn from
  5. '^\s*(?:(?:(?:ISBN)?[:;a-zA-Z]+?|\([[:digit:]]+\))\s*)?([0-9 -]+[0-9Xx])'), '[- ]', ''))
  6. $$;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...