hi,
TURNAWAY (type="video" product="opiv" session="foo12345" customer="muco:1234" time="1234567890")
CUSTOMER {customer_id="muco:443" name="Yale University"}
PLAYBACK (type="audio" product="glmu" customer_id="muco:443" session="muco:foo12345abcde" user_id="muco:123" identifier="muco:123456" publisher="EMI" title="Merengue from Music of Guatemala, Vol. 1" played="180" timestamp="1234567890" token="abcdef1234567890abcdef")
HTTPLOG (format="apache" product="cpho" customer="123")
In this code TURNAWAY is one line,CUSTOMER is another line,PLAYBACK is another line and HTTPLOG is another line. I want a regular expression to match the things inside () or {} or and build a hash for the ones in braces and put eache line in a list . Cols u please help me?
Regards,
pavan
|