VisibleSpectrum / google-refine

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

[Wishlist] match() function to turn results of regexp groups into an array #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if I could do the following:

// value = July 2010 Something Something Something AVZCX

value.match(/([a-zA-Z]+) ([0-9]{4}) (.*) ([A-Z]+)/)

and get an array 

['July','2010','Something Something Something','AVZCX']

Obviously this is a trivial example, but I think it will have its uses.

Original issue reported on code.google.com by AndrewOf...@gmail.com on 14 May 2010 at 3:08

GoogleCodeExporter commented 8 years ago
Good idea, I like that. I'll take it.

Original comment by stefano.mazzocchi@gmail.com on 14 May 2010 at 4:07

GoogleCodeExporter commented 8 years ago

Original comment by stefano.mazzocchi@gmail.com on 14 May 2010 at 4:07

GoogleCodeExporter commented 8 years ago
I've added a match() GEL function that returns an array of strings with the 
capturing groups of the regexp. Now all 
we need is a way to turn the returned GEL arrays into columns (which is Issue 
36)

Original comment by stefano.mazzocchi@gmail.com on 1 Jun 2010 at 8:57

GoogleCodeExporter commented 8 years ago

Original comment by dfhu...@gmail.com on 18 Jul 2010 at 1:05

GoogleCodeExporter commented 8 years ago

Original comment by stefano.mazzocchi@gmail.com on 23 Jul 2010 at 3:00

GoogleCodeExporter commented 8 years ago
This was actually already implemented as specified in the issue so I'm closing 
it

Original comment by stefa...@google.com on 31 Aug 2010 at 7:51

GoogleCodeExporter commented 8 years ago

Original comment by dfhu...@google.com on 27 Sep 2010 at 10:02

GoogleCodeExporter commented 8 years ago

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