my dog learned polymorphism
The moose likes Java in General and the fly likes Problem in regular expression for matching Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Problem in regular expression for matching" Watch "Problem in regular expression for matching" New topic
Author

Problem in regular expression for matching

Dawood Mohammed
Greenhorn

Joined: Sep 06, 2005
Posts: 7
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in regular expression for matching
 
Similar Threads
Comparing Values of multi dimensional array
Has-A doubt
How do I refresh a jtable after I delete a row?
problem in writing Regular Expression
how to split "abc-def - ghi-jkl"?