Jamalmo / google-refine

Automatically exported from code.google.com/p/google-refine
Other
0 stars 0 forks source link

Behavior of Text Filter is unpredictable when "regular expression" mode is enabled. #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load the U.S. Overseas Loans and Grants dataset identified on the
"Sample Datasets" wiki page.
2. Select "Text Filter" from the header of the "country_name" column.
3. Type "aus" in the filter. Two rows are returned, "Australia" and "Austria".
4. Enable "regular expression" mode. All results disappear.
5. Replace the filter value with "^Aus". The results remain empty.

What is the expected output? What do you see instead?

I tried various other regular expression formats (including /'s, matching
groups, etc.) and could not make the filter return the expected results. 
On another dataset I did see matching values, but not enough to have
covered the entire dataset, which leads me to believe the regex filter may
not be searching the entire dataset.

What version of the product are you using? On what operating system?

SVN HEAD on OSX.

Please provide any additional information below.

Original issue reported on code.google.com by staringmonkey on 14 May 2010 at 2:22

GoogleCodeExporter commented 8 years ago
+1

I have cells with values like: (OF 9)
and I'm using the regexp: \(OF [0-9]+\)

my regexp tester says they should match, but it doesn't work as a text filter

(I tried various quantities of backslashes for escaping due to past experience 
with java's awkwardness, but it 
didn't help)

Original comment by AndrewOf...@gmail.com on 14 May 2010 at 3:23

GoogleCodeExporter commented 8 years ago
Fixed in r766. staringmonkey, please verify.

Original comment by dfhu...@gmail.com on 14 May 2010 at 4:52

GoogleCodeExporter commented 8 years ago

Original comment by tfmorris on 18 Sep 2012 at 2:21

GoogleCodeExporter commented 8 years ago

Original comment by tfmorris on 18 Sep 2012 at 2:56