cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-14316%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EWie%20lautet%20die%20Escape-Sequenz%20f%C3%BCr%20Schr%C3%A4gstriche%20(%E2%80%9E%2F%E2%80%9C)%20f%C3%BCr%20Zeichenfolgen%20in%20Anf%C3%BChrungszeichen%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14316%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3EHallo%20zusammen%2C%20ich%20wei%C3%9F%2C%20dass%20die%20JSL-Backslash-Escape-Sequenz%20f%C3%BCr%20Zeichenfolgen%20in%20Anf%C3%BChrungszeichen%20%5C!%5C%20ist.Aber%20was%20ist%20die%20entsprechende%20Escape-Sequenz%20f%C3%BCr%20einen%20Schr%C3%A4gstrich%3FExistiert%20%C3%BCberhaupt%20eines%20in%20JSL%3FIch%20habe%20im%20JSL-Skripthandbuch%20(S.%2085)%20keine%20Referenzen%20gesehen.Danke%2C%20DJ%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-14317%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Wie%20lautet%20die%20Escape-Sequenz%20f%C3%BCr%20Schr%C3%A4gstriche%20(%E2%80%9E%2F%E2%80%9C)%20f%C3%BCr%20Zeichenfolgen%20in%20Anf%C3%BChrungszeichen%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14317%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EEs%20gibt%20ein%20%E2%80%9EIgnorieren%E2%80%9C.%3CEM%3E%20fast%3C%2FEM%3E%20alles%22%20entkommen%3C%2FSPAN%3E%3CSPAN%20style%3D%22line-height%3A%201.5em%3B%20font-size%3A%2012pt%3B%22%3E%20das%20k%C3%B6nnte%20n%C3%BCtzlich%20sein.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CPRE%20__jive_macro_name%3D%22quote%22%20class%3D%22jive_text_macro%20jive_macro_quote%22%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20'courier%20new'%2C%20courier%3B%22%3EWrite(%20%22%5C!U263Atest%5C!U263A%5C%5B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20'courier%20new'%2C%20courier%3B%22%3E%26nbsp%3B%20anything%20%22%20goes%20'%20%5C%20here%20%5C!n%20%5C!U263A%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20'courier%20new'%2C%20courier%3B%22%3E%26nbsp%3B%20except%20square-bracket%20back-slash%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20'courier%20new'%2C%20courier%3B%22%3E%5D%5C%5C!U263Atest%5C!U263A%22%20)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSTRONG%20style%3D%22font-size%3A%2012pt%3B%22%3E%E2%98%BATest%E2%98%BA%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%3CSTRONG%3Ealles%20%22%20geht%20hier%20%5C!n%20%5C!U263A%20%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%3CSTRONG%3Eau%C3%9Fer%20Backslash%20in%20eckigen%20Klammern%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%20style%3D%22font-size%3A%2012pt%3B%22%3E%E2%98%BATest%E2%98%BA%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EBeachten%20Sie%2C%20dass%20die%20Smiley-Zeichen%20aus%20dem%20Unicode-Escape%20%5C!U263A%20au%C3%9Ferhalb%20des%20%5C%5B%20...%20%5D%5C-Teils%20der%20Zeichenfolge%20funktionieren%2C%20jedoch%20nicht%20innerhalb.Die%20beiden%20benachbarten%20Backslashes%20in%20der%20letzten%20Zeile%20erf%C3%BCllen%20zwei%20unterschiedliche%20Aufgaben%3B%20einer%20geh%C3%B6rt%20zur%20eckigen%20Klammer%20und%20einer%20zum%20Unicode-Escape.Und%20wenn%20Sie%20%5D%5C%20weglassen%2C%20ist%20der%20Rest%20Ihrer%20JSL%20nat%C3%BCrlich%20Teil%20der%20nicht%20terminierten%20Zeichenfolge%2C%20was%20zu%20einem%20Fehler%20f%C3%BChrt.Behalten%20Sie%20die%20Zeichenfolge%20in%20einer%20Zeile%20bei%2C%20dann%20funktioniert%20auch%20die%20Syntaxf%C3%A4rbung%20des%20Editors%20besser.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
djhanson
Level V

What's the forward slash ("/") escape sequence for quoted strings?

Hi All, I know the JSL backslash escape sequence for quoted strings is \!\.  But what is the equivalent escape sequence for a forward slash?  Does one even exist in JSL?  I did not see any references in the JSL scripting guide (p. 85).  thx, dj

1 ACCEPTED SOLUTION

Accepted Solutions
Craige_Hales
Super User

Re: What's the forward slash ("/") escape sequence for quoted strings?

There is a "ignore almost everything" escape that might be useful.


Write( "\!U263Atest\!U263A\[


  anything " goes ' \ here \!n \!U263A


  except square-bracket back-slash


]\\!U263Atest\!U263A" );




☺test☺

  anything " goes ' \ here \!n \!U263A

  except square-bracket back-slash

☺test☺

Note the smile face characters from the Unicode escape \!U263A work outside of the \[ ... ]\ part of the string but not inside.  The two adjacent back slashes in the last line are doing two different jobs; one belongs with the square bracket and one with the Unicode escape.  And, of course, if you leave out the ]\, the rest of your JSL will be part of the un-terminated string, causing an error.  Keep the string on one line and the editor's syntax coloring will work better too.

Craige

View solution in original post

1 REPLY 1
Craige_Hales
Super User

Re: What's the forward slash ("/") escape sequence for quoted strings?

There is a "ignore almost everything" escape that might be useful.


Write( "\!U263Atest\!U263A\[


  anything " goes ' \ here \!n \!U263A


  except square-bracket back-slash


]\\!U263Atest\!U263A" );




☺test☺

  anything " goes ' \ here \!n \!U263A

  except square-bracket back-slash

☺test☺

Note the smile face characters from the Unicode escape \!U263A work outside of the \[ ... ]\ part of the string but not inside.  The two adjacent back slashes in the last line are doing two different jobs; one belongs with the square bracket and one with the Unicode escape.  And, of course, if you leave out the ]\, the rest of your JSL will be part of the un-terminated string, causing an error.  Keep the string on one line and the editor's syntax coloring will work better too.

Craige

Recommended Articles