I have a string variable that some values of it are leading by a double quote ("). I want to trim the leading double quote using -subinstr()- function. However, I find that I cannot quote the (") in double quote ("").
Code:
replace name=subinstr(name,""","",1)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 name "John" `""Lee"' "Richard" `""Smith"' `""Alfred"' "Grusky" end
0 Response to How to double quote the double quote
Post a Comment