I need to parse a lengthy text in order to extract data based on a specific pattern.
Pattern:
(placeholder) placeholder (placeholder|placeholder)
for instance
(Location X) 231 (-5|10) or (Town Y) 789 (231|-15)
There are numerous occurrences of these phrases in my text and I aim to store each one in an array.