<div dir="ltr">Hi all - <div><br></div><div>I have a python plugin where I iterate through all vectorlayers and get the source for each layer using</div><div><br></div><div>mySource = myVectorLayer.source() <br clear="all"><div><br></div><div>The result could be something like this: (one line)</div><div><br></div><div><p style="margin:0px;white-space:pre-wrap">restrictToRequestBBOX='1' srsname='EPSG:25832' typename='dai:theme-pg-natura2000_omraader_habitatnatur' url='<a href="http://wfs2-miljoegis.mim.dk/dai/ows?version=1.1.0">http://wfs2-miljoegis.mim.dk/dai/ows?version=1.1.0</a>' table="" sql=</p></div><div><br></div><div>The question:  - How can i split this string into parts ? (In this case: <span style="white-space:pre-wrap">restrictToRequestBBOX, srsname, typename, url, sql)</span></div><div><br></div><div>The obvious method is to use ex.:   myList = mySource.split(' ')</div><div><br></div><div>But that depends on that no part id or value contains a "blank"</div><div> </div><div>Is there a more secure method to do the spiltting?</div><div><br></div><div>-- <br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Med venlig hilsen / Kind regards<div><br></div><div>Bo Victor Thomsen</div><div><br></div></div></div></div>