Hi
I have a txt.-file with multiple names of people in it. The names are displayed as follows:
|name1|name2|name3|name4| etc.
I want to extract the names using preg_match_all. But how do I write the pattern to match? I need the names, not the vertical bars. I tried this one:
'/|\w+|/'
But the problem with this one is that it also extracts the vertical bars.
Can someone help me?