Extracting a string
Posted: Tue Aug 03, 2004 8:52 am
Hello,
I guess my question is simple but at the moment I don't know how to do it.
I would like to do following: Parse a string (one webpage) for 72393. If I find 72393 in the page I want to "pull out" a string 50 characters
ahead of 72393 (including 72393). How do I do that?
How about 50 characters ahead of 72393 and 50 characters behind 72393?
For example:
company Name<br>
Street 5<br>
72393 Example-City<br>
The extracted string should then be changed to a array of string (using explode).
Thanks!
I guess my question is simple but at the moment I don't know how to do it.
I would like to do following: Parse a string (one webpage) for 72393. If I find 72393 in the page I want to "pull out" a string 50 characters
ahead of 72393 (including 72393). How do I do that?
How about 50 characters ahead of 72393 and 50 characters behind 72393?
For example:
company Name<br>
Street 5<br>
72393 Example-City<br>
The extracted string should then be changed to a array of string (using explode).
Thanks!