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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -