regulex icon indicating copy to clipboard operation
regulex copied to clipboard

Not able to escape backslash

Open sunildharani opened this issue 10 years ago • 3 comments
trafficstars

download

sunildharani avatar Dec 02 '14 08:12 sunildharani

It is a special case, because backslash need to represent"\n","\t" in literal string, so a raw'\' need to represent as '\\'. e.g. /\\n/ should be represent as "\\n" that if represent as"\n" will cause ambiguous . And/\*/ represent as"*"won't cause ambiguous,because the blue square box already indicates it is literal.

CJex avatar Dec 02 '14 09:12 CJex

Thanks JexCheng . Is there any other way to represent "\n" as only "\n" , by changing box color or something like that .. Now also it looks like ambiguous to me with two backslashes and n :) :)

sunildharani avatar Dec 02 '14 09:12 sunildharani

I have no idea, do you have any suggestion? PS: Current representation conform with JavaScript String literal

CJex avatar Dec 02 '14 11:12 CJex