Comments (2)
From [email protected] on May 17, 2010 03:05:54:
I've managed to narrow it down to the special hyphen character in the regex, but I'm
not yet sure why that causes the code to fail. The actual exception thrown is this:
Traceback (most recent call last):
File "", line 5, in _temp_
File "/home/vishal/Workspace/metaweb/freebase-gridworks-read-
only/lib/jython/re.py", line 142, in search
return _compile(pattern, flags).search(string)
File "/home/vishal/Workspace/metaweb/freebase-gridworks-read-
only/lib/jython/re.py", line 241, in _compile
raise error, v # invalid expression
sre_constants.error: nothing to repeat
I'm still investigating.
from openrefine.
From [email protected] on May 17, 2010 04:51:06:
Raymond, I found that this works
import re
g = re.search(ur"\u2014 (._),\s_BWV", value)
return g.group(1)
Could you check? Note the unicode character as well as the ur prefix. Unfortunately, I don't know a quick way
to encode unicode characters within jython code without writing a parser for it. So right now you'd have to do
the encoding yourself. I did this by first using GEL on the expression "—".unicode(), which gives 8212, and
then converting that from decimal to hex.
from openrefine.
Related Issues (20)
- Improve Coveralls reporting
- loosing rows in a project HOT 5
- Weird layout for Wikitext importer HOT 2
- Duplicate jars in packaged versions
- Data parsing bug when the first column has nulls HOT 7
- Problem with previewing images + UX suggestion
- Concatenate strings with null values doesn't work as expected
- Node 16 EOL
- CSV/TSV separators not guessed correctly for files with Byte Order Marks
- Using Cell Edit button to change String to Date data type gives Uncaught RangeError
- Column resize does not retain the absolute position after Undo/Redo
- Eliminate all uses of raster graphics in the UI
- Rendering bug in "non-blank values per column" facet
- Text files are saving wrong on macOS Sonoma
- Tag management of the Wikibase editing operation HOT 1
- Reusable java test utilities for extensions HOT 1
- Show Facet Spinner SOONER on any potentially slow Facets (especially Unicode char-code facet) HOT 2
- ./refine script should fail properly if npm is not available
- Uncaught TypeError causing dozens of e2e test failures HOT 4
- New GEO Extension with commonly needed functions for GIS, geography, etc. HOT 2
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 openrefine.