So I'm coding a script to extract particular data fields from strings of semi predictable data, and I'm trying to use PHP to grab the text between say the 70th and 71st counts of a specific character.
So a sample string of data would be as follows...
00000|data|data|data|text|data|data|||
How can I use PHP to grab the "text" between the 4th and 5th "|". The text field changes so I cannot just use a regex to match and extract it. The only logical method I can think of is the use the count of "|" which is predictable each time.
Any idea how I can accomplish this? I'd rate my PHP skills as moderate but no matter what I try I cant get this to work out.