how to retrieve field value (values are itself string)in given line using regular expression in python
<p>I am newbie to python,i am facing below issue please help me:</p>

<p>I read line by line from one file, each line having field name and its value,
now  i have to find out field name and filevalue in the line.example of line is:</p>

<pre><code>line=" A= 4 | B='567' |c=4|D='aaa' "
</code></pre>

<p>Since some field values are itself a string so I am unable to create regex to retrieve field name and filed value.</p>

<p>Please let me know regex for above example. 
the output should be</p>

<pre><code>A=4 

B='567'

c=4

D='aaa'
</code></pre>
