[jboss-dev] Regular expression for key value pairs

Vladimir Blagojevic vblagoje at redhat.com
Fri Sep 4 12:09:24 EDT 2009


What would be a regular expression for Java annotation key value pairs? 
I want to compile this regex in Pattern class and then call method split 
to get the the key value pairs. For example,
     id       = 2868724,
     synopsis = "Enable time-travel",
     engineer = "Mr. Peabody",
     date     = "4/1/3007"

Much appreciated,

More information about the jboss-development mailing list