[Dragoon]
Vortigaunt
- Joined
- Feb 27, 2004
- Messages
- 840
- Reaction score
- 6
Not Half-life related, but I figured this would still be the best place to post this question.
How would I find all occurrences of two strings (string1, and string2), and what's between each set of occurrences?
For example, if string1 = "X" and string2 = "Z" and I ran it on the following text:
I want it to return "1", "abc", and "y".
Anyone know how to do this?
How would I find all occurrences of two strings (string1, and string2), and what's between each set of occurrences?
For example, if string1 = "X" and string2 = "Z" and I ran it on the following text:
Code:
lololol X1Z text
other text XabcZ more text
XyZ etc
I want it to return "1", "abc", and "y".
Anyone know how to do this?