By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,708 Members | 2,080 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,708 IT Pros & Developers. It's quick & easy.

regular expression

P: 51
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?

Aug 22 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 4,059
lets see what you have tried so far to solve your problem.
Aug 22 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.