dmcgimpsey
Active Member
- Joined
- Mar 30, 2004
- Messages
- 268
Hi Folks, seasons greetings.
I am feeling very lazy today and besides, I want to go and have a smoke.
I am sure someone has already done this before, and I could do it if I convinced myself to get over the procrastinating ... but this is such a great resource for "Tag-Team" programming, I thought I would ask if someone already had some ready made code.
Enough preamble:
What I need is an expression that would extract text from within quotes, somewhere in the middle of a string varaible. There are guaranteed to always be 2 quotes, and there will always be text in the middle.
Example:
<A id=m3_l href="https://mysites.temp/Person.aspx?accountname=ADS%5Cbtname1"/A>
I would like to extract the string:
https://mysites.temp/Person.aspx?accountname=ADS\btname1
I don't wish to have the quotes in the result.
IF someone already has done this, or could give me the code, I would really appreciate it, you would make my day - otherwise, I will have to code it. Writing this post probably took more time than coding it - ha ha... just feeling lazy, hope you understand
Thanks in advance
Don
Merry Xmas
I am feeling very lazy today and besides, I want to go and have a smoke.
I am sure someone has already done this before, and I could do it if I convinced myself to get over the procrastinating ... but this is such a great resource for "Tag-Team" programming, I thought I would ask if someone already had some ready made code.
Enough preamble:
What I need is an expression that would extract text from within quotes, somewhere in the middle of a string varaible. There are guaranteed to always be 2 quotes, and there will always be text in the middle.
Example:
<A id=m3_l href="https://mysites.temp/Person.aspx?accountname=ADS%5Cbtname1"/A>
I would like to extract the string:
https://mysites.temp/Person.aspx?accountname=ADS\btname1
I don't wish to have the quotes in the result.
IF someone already has done this, or could give me the code, I would really appreciate it, you would make my day - otherwise, I will have to code it. Writing this post probably took more time than coding it - ha ha... just feeling lazy, hope you understand
Thanks in advance
Don
Merry Xmas