Escaping the "/" character...

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
drbob001
Posts: 16
Joined: Tue Jan 08, 2008 8:01 am

Escaping the "/" character...

Post by drbob001 » Mon Apr 21, 2008 3:29 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Mon Apr 21, 2008 4:10 am

quote is the keyword:

replace "</td></tr><tr><td><a href="&quote&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

drbob001
Posts: 16
Joined: Tue Jan 08, 2008 8:01 am

Tried that...

Post by drbob001 » Mon Apr 21, 2008 7:29 am

I was under the impression that the "/" needed to be escaped - am I incorrect in that assumption? Thanks for the come-back.

Bob

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Tried that...

Post by FourthWorld » Mon Apr 21, 2008 5:24 pm

drbob001 wrote:I was under the impression that the "/" needed to be escaped - am I incorrect in that assumption?
Not unless you're using it as a delimiter. Within a quoted string as you have it it should be fine.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply