Nonquoted expression

"Srinivasan Krishnan" <[email protected]> Fri, 16 Aug 2002 03:48:29 +0530
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <000001c244a9$af65ee90$9e705ea8@snrbby110683>
Hi 
 
 
Sorry for my limited knowledge in RegEXp. I could find a lot of Geeks in
Discussion forum. please teach me the below
 
My java RegExp is  "([a-z]+)\\s*=\\s*\"([^\"]+)\""   is the expression i
use to   extract all the  Key =  values pair in the string   
 
   face="Arial, Serif" size="+2" color="red " 
 
But how ever this approach fails when the value is not quoted  . when i
use RegExp    \\s*([a-z]+)\\s*=\\s*([^\\s]*)\\s* this works for unquoted
String values 
such as 
 
face="Arial, Serif" size=+2 color="red " 
 
 but fails when my input string is   
 

   face=Arial Serif size="+2" color="red " 
 
 
 
How to write a REGEXp such that accepts the unquoted values as well as
space in between the values.
 
regards,
srini SK

--
To unsubscribe, e-mail:   <mailto:[email protected]>
For additional commands, e-mail: <mailto:[email protected]>
Wipro_Disclaimer.txt (text/plain, 515 B)
**************************Disclaimer************************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************************