hi,
TURNAWAY (type="video" product="opiv" session="foo123 45" customer="muco: 1234" time="123456789 0")
CUSTOMER {customer_id="m uco:443" name="Yale University"}
PLAYBACK (type="audio" product="glmu" customer_id="mu co:443" session="muco:f oo12345abcde" user_id="muco:1 23" identifier="muc o:123456" publisher="EMI" title="Merengue from Music of Guatemala, Vol. 1" played="180" timestamp="1234 567890" token="abcdef12 34567890abcdef" )
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
TURNAWAY (type="video" product="opiv" session="foo123 45" customer="muco: 1234" time="123456789 0")
CUSTOMER {customer_id="m uco:443" name="Yale University"}
PLAYBACK (type="audio" product="glmu" customer_id="mu co:443" session="muco:f oo12345abcde" user_id="muco:1 23" identifier="muc o:123456" publisher="EMI" title="Merengue from Music of Guatemala, Vol. 1" played="180" timestamp="1234 567890" token="abcdef12 34567890abcdef" )
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
Comment