Splitting a column on separator, while keeping separator character.

457 views
Skip to first unread message

Neil Hawkins

unread,
Mar 14, 2014, 9:13:28 AM3/14/14
to openr...@googlegroups.com
Hello,

Does anybody know whether when splitting a column into several columns based a character, is it possible to keep the character when the split is carried out?


Thanks.

Tom Morris

unread,
Mar 14, 2014, 10:31:56 AM3/14/14
to openr...@googlegroups.com

I think you should be able to do this by splitting using a RegEx but I'd have to play with it and I'm on the road right  now.

Tom

--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thad Guidry

unread,
Mar 14, 2014, 12:39:03 PM3/14/14
to openr...@googlegroups.com
Look at partition() GREL command, it allows you to optionally specify (true|false) if you want to keep the separator char.


Neil Hawkins

unread,
May 6, 2014, 9:32:45 AM5/6/14
to openr...@googlegroups.com
Thad, belated thank you for pointing me to partition.

Best,
Neil
Reply all
Reply to author
Forward
0 new messages