I'm trying to pull out a string between 2 other strings. But to make it more complicated the proceeding contents will often differ.
The string I'm trying to retrieve is Christchurch.
The regex I have so far is (?<=300px">).*(?=</td)
and it will pull out the string I'm looking fine but it will also return dozens of other strings through out the LARGE text file I'm searching.
What I'd like to do is limit the prefix to start seraching from Office:, all the way to 300px"> but, the contents between those 2 strings will sometimes differ dependant upon user preferences.
To put it in crude non regex terms I want to do the following: Starting at Office:
all the way to 300px>
find the string that starts here and ends with </td
. Thus resulting in Christchurch.