python - skipping double quotes"" while reading into array in jython -
example:
in jython:
(here want read line file:path
skipping double quotes)
how that.
i'm not sure question since in example did not remove double quote, if want (removing double quote), that:
''.join(yourstring.split('"'))
this gives me:
>>> string = '"d:/ibm/websphere8/appserver/profiles/appsrv12"/logs/logbackmain.xml' >>> ''.join(string.split('"')) 'd:/ibm/websphere8/appserver/profiles/appsrv12/logs/logbackmain.xml'
if it's first double quote, can do:
''.join(yourstring.split('"', a))
Comments
Post a Comment