PutterPlace
Active member
- Joined
- Feb 18, 2008
- Messages
- 37
- Programming Experience
- 1-3
I am working on, what should be, a simple project. What I need to do it collect all occurences of a string between two specific strings. For example:
I need to get "SomeText" and "SomeMoreText" (without the quotes) from the above text. I was thinking maybe using regular expressions to do the task, but I'm not sure how to put it together. This text will always remain the same:
Text Before String:
Text Immediately After String:
Any help with this matter would be GREATLY appreciated.
VB.NET:
These are some words that may be here.<br><br>
<br><a href='/directory/?act=SomeText'>Some Name</a>
<br><br> These are some more words that might be here.<br><br>
<br><a href='/directory/?act=SomeMoreText'>Some Other Name</a>
I need to get "SomeText" and "SomeMoreText" (without the quotes) from the above text. I was thinking maybe using regular expressions to do the task, but I'm not sure how to put it together. This text will always remain the same:
Text Before String:
VB.NET:
<br><a href='/directory/?act=
Text Immediately After String:
VB.NET:
'>
Any help with this matter would be GREATLY appreciated.