Title: Message
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
**************************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.

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

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to