« Return to Thread: quote char appearing in string literal, how to parse?

quote char appearing in string literal, how to parse?

by Terry Gardner-2 :: Rate this Message:

Reply to Author | View in Thread

I need a way to parse this string:

"m>\AF\A4}"\B7p\28^\?"

where all of the double quote characters are present, that is, the  
string is delimited by the quotes at the beginning and end, and a  
double quote appears as part of the string. I had hoped for a simple  
TOKEN but cannot make that work. My current TOKEN looks like this:

     | <#CHARACTER:  ["a"-"z","A"-"Z","0"-"9","/","'","`","=","  
",",","(",")","*","-",";","|","&","\
\",".",":","$","!","@","#","%","^","_","+","?","<",">","~","{","}"] >
     | <STRING_LITERAL: ( "\"" <CHARACTER> (<CHARACTER>)* "\"" ) |  
"\"\"" >

Is there a way to have the string above matched by <STRING_LITERAL>,  
or am I off-track and need to do something else? If so, what?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: quote char appearing in string literal, how to parse?