[jboss-dev] Regular expression for key value pairs

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


Hi,

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,
@RequestForEnhancement(
     id       = 2868724,
     synopsis = "Enable time-travel",
     engineer = "Mr. Peabody",
     date     = "4/1/3007"
)

Much appreciated,
Vladimir



More information about the jboss-development mailing list