So I'm looking at a string like this with a | delimiter:
XL231241424|AB|ABCDE|LK|Word|A Phrase|Another random phrase|GH49|Example|31/02/2020|05/03/2020|N/A|N/A|N/A
The end goal is to pluck specific items from this string and concatenate them together, essentially giving a more concise bit of text for readable in a reporting platform.
I tried this and this but couldn't get it to work for my string. The match is simple, it's just:
([^\|]*)
but how do I then just pull a match in position x? Specifically, if I want to get Another random phrase
which is position 7, how do I do that?
Any help is much appreciated and an explanation is even better!
Thanks.