File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Problem in regular expression for matching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
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
Has-A doubt
problem in writing Regular Expression
how to split "abc-def - ghi-jkl"?
Comparing Values of multi dimensional array
How do I refresh a jtable after I delete a row?