Comments (2)
Hi, @ChandlerLutz! Thanks for sharing this and glad you got it working.
Did you experience a similar issue with any of the other regexes, or just the one for the crime_type
?
I tried just now with a new install of PostgreSQL 11 and pgAdmin 4.1 on a on a Windows 7 laptop and a fresh download of the data from this repo, and the book's code worked as expected. So, I'm a bit puzzled as to what's occurring on your side. It sounds to me like you did everything as expected, including a clean download of the file.
Please let me know your thoughts, and we'll leave this issue open in case others run into the same.
from practical-sql.
Hi Anthony,
So, I essentially ran in to the problem every time that a regex pattern contain the newline character \n
. It might be some setting on my Windows10 machine (If I figure it out, I'll let you know). In the end I just replaced every \n
with the negated capture group (?:\r\n|\r|\n)
. This worked well and gave me a little more regex practice!
from practical-sql.
Related Issues (20)
- Chapter 4: Performing the census import with COPY. HOT 9
- Chapter 4 csv usa_counties2010.csv HOT 3
- Chapter 13 regexp error HOT 5
- Chapter 13 tsvector HOT 5
- CH 4 Try it Yourself #2 HOT 1
- Chapter 3 Listing 3.1 HOT 6
- File access denied on MacBook Air using COPY HOT 5
- "Chapter 4: COPY us_counties_2010 Permission Denied Question" HOT 2
- Windows File/Folder Permissions for COPY HOT 3
- Chapter 5 Median Aggregator Code Incompatible with PostgreSQL14 HOT 3
- Error in executing factorial part of listing 5-3 HOT 1
- Chapter 13: Datestyle Question HOT 2
- Chapter 15: Python program keeps closing database connection HOT 3
- Installation Instructions for PL/Python Extension
- Chapter 4: Missing data column and unable to import CSV
- Chapter 4: ERROR: value too long for type character varying(3) CONTEXT: COPY us_counties_2010, line 2, column state_us_abbreviation: "STUSAB" HOT 3
- CHAPTER 8 HOT 5
- Ch. 4 Copy | Mac OS | Error 42P01 HOT 4
- Chapter 14: Analyzing Spatial Data no geom column HOT 12
- Chapter 8: Try It Yourself Question 2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from practical-sql.