scotth1
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2013
07:46 PM
Brightscript Escape Quotation Marks
How do I escape quotation marks in a string using Brightscript? In particular, I am wanting to do this in a regex. I've tried double quotes and backslashes, but neither seems to do the trick for me. I searched for "escape" in the docs that come with the SDK, but that doesn't yield any useful results.
2 REPLIES 2
![TheEndless TheEndless](http://roku.permanence.com/images/sandman_endless_100x100.gif)
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2013
09:35 PM
Re: Brightscript Escape Quotation Marks
You can't escape them. You have to concatenate with Chr(34).
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Casten
Newbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024
03:56 PM
Re: Brightscript Escape Quotation Marks
Two double quotes together escape to a single quote.
Example:
Brightscript Debugger> print "some quotes ""around here"" "
some quotes "around here"