jython re expression doesn't work #42
Labels
imported from old code repo
Issue imported from Google Code in 2010
Priority: Medium
Represents important issues that need to be addressed but are not urgent
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
Original author: raymond....@gmail.com (May 16, 2010 21:16:27)
I'm trying to transform BWV 1 — Wie schön leuchtet der Morgenstern, BWV 1 in a cell to Wie schön
leuchtet der Morgenstern using the following Jython function:
import re
v = cell["value"]
g = re.search(r"""— (._),\s_BWV""",v)
return g.group(1)
which, alas, returns null
However, in Jython 2.5.1, the following code works
-- coding: utf-8 --
import re
v = cell["value"]
v = "BWV 1 — Wie schön leuchtet der Morgenstern, BWV 1"
g = re.search(r"""— (._),\s_BWV""",v)
print g.group(1)
I'm using GW Version 1.0.1-r732
Original issue: http://code.google.com/p/google-refine/issues/detail?id=42
The text was updated successfully, but these errors were encountered: