Is it possible to type a quotation mark (") in MMF2's expression editor without it being interpreted as a string? I need it for parsing HTML, so the usual double apostrophe won't suffice.
Printable View
Is it possible to type a quotation mark (") in MMF2's expression editor without it being interpreted as a string? I need it for parsing HTML, so the usual double apostrophe won't suffice.
Use "". For whatever reason that's how you escape it... """" would be a " as string. "x""x" is x"x.
Thanks Looki!
is there another way to do this, may by inserting ascii code?
because this solution doesnt work for me with StringParser2 and iOS Exporter. (already posted in the bug tracker)
More Info: This just happen to Quotation Marks at the start of the expression, example: """hello"
A bit of a workaround, but if "" doesn't work you could try setting the string value of something else (an alterable string of an object, or just a text object) to ", and then use that in the expression... see if that helps.
I usually set a permanent global string to ", call it quote and that does the trick. I didn't know "" also did the job. It's made me wonder if quote+"C:\"+quote is easier to read & understand than ""+"C:\"+""