Link to home
Start Free TrialLog in
Avatar of mainrotor
mainrotor

asked on

I need help finding an unknown string value within a string in my VB.Net application

Hi Experts,
I need help finding an unknown value within a string.
For example, if I have the following string:
<img width = "712" height="616" src="/inlineimages/Orders/238925/0.png" />

I want to be able to return the string value between this:
<img width="712" height="616" src="/inlineimages/Orders/

and
 
" />

so the result should be:  238925/0.png


How can I do this?

Thanks in advance,
mrotor
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Martin Liss
Dim strParts() As String

strParts = Split(YourString, "/")
MsgBox strParts(UBound(strParts) - 1) & "/" & strParts(UBound(strParts))

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial