I need to match a regular expression for a text facade in google refine. I tried the expression and it didn't work. Then I tried a simple case of matching string lenovo in www.lenovo.com using
value.match(/lenovo/)
in some of the rows my value takes value www.lenovo.com
,
How come such a simple string match, not working in Google refine. I'm running on windows.
Please let me know if I'm doing any obvious syntax errors.
What are you getting back, and what do want to get back?
The return value of the match() function is either null for no-match or an array
The help tab says:
For an input value of "lenovo",
this function:
value.match( /lenovo/ )
should return this value:
[]
Do you want to turn this into a True/False value for your facet, to test the presence/absence of that text string? You could do something like this: