I've been going through the documentation and on-line forums for about 2 hours now and haven't been able to locate the answer to this question:
Using replace, I'm trying to kill off some HTML code in a captured document, like this:
replace "</td></tr><tr><td><a href="errorlist.cgi?call=" with return in field "Eatery2"
Of course, this returns an error -- but I haven't been able to locate the syntax information to escape the "/" and " character in the find routine.
Your direction would be appreciated.
Bob
Escaping the "/" character...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
quote is the keyword:
replace "</td></tr><tr><td><a href=""e&errorlist.cgi?call=" with return in field "Eatery2"
replace "</td></tr><tr><td><a href=""e&errorlist.cgi?call=" with return in field "Eatery2"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Tried that...
I was under the impression that the "/" needed to be escaped - am I incorrect in that assumption? Thanks for the come-back.
Bob
Bob
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Tried that...
Not unless you're using it as a delimiter. Within a quoted string as you have it it should be fine.drbob001 wrote:I was under the impression that the "/" needed to be escaped - am I incorrect in that assumption?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn