This is close. I should have pointed out that each cell can contain multiple lines. The sample text I posted was one cell. I'm having trouble with greediness/unknown numbers of occurrences in a single line. One line might contain
something, Protocol: UDP, something, Destination Port: x-y, something, something, Protocol: TCP, something, Destination Port: a-b, somethingI need to extract each protocol/port pair into an array, and there's an unknown number. Protocol always comes before port, but not always immediately.
In reply to Re^2: Regex Question
by clegane
in thread Regex Question
by clegane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |