Hi,
I am trying to split a string with the following format into 8 separate columns.
TEAM||Manchester|London||City|Derby|Number of Players|Man of the Match|Match Day
I have tried using Regex expression ([^|]*) as suggested doesn't work out that way. Any tips that could help solve this issue?
Thanks!
Solved! Go to Solution.
hey @James89 this could be neater but this will do it for you
([^|]+)\|\|([^|]+)\|([^|]+)\|\|([^|]+)\|([^|]+)\|([^|]+)\|([^|]+)\|([^|]+)
@James89
It can be done also with the use of Text To Column tool, Using Pipe as the delimiter.
Hey @James89, the following ought to work in the RegEx tool in Tokenize mode, splitting to 8 fields:
([^|]+)\|?
Thanks @DataNath ! It really works.
User | Count |
---|---|
52 | |
27 | |
25 | |
24 | |
21 |