• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in regular expression for matching

 
Dawood Mohammed
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For the example below, can I write a regular expression to get key, value pairs.

example: ((abc def) (ghi jkl) (a ((b c) (d e))) (mno pqr) (a ((abc def))))

in the above example
abc is key & def is value
ghi is key & jkl is value
a is key & ((b c) (d e)) is value
and so on.

can anybody pls help me in resolving this problem using regular expressions...

Thanks in advance
[ September 06, 2005: Message edited by: Michael Ernest ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic