RE: help on forming Regular expression - More clear question
"Srinivasan Krishnan" <[email protected]> Fri, 16 Aug 2002 21:38:40 +0530
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Message-ID | <000501c2453f$2fe777b0$9e705ea8@snrbby110683> |
Greetings, i have got commets saying my previous query to group is not clear .. sorry for that .. here is a better formed question .. help me I am using jakartha ORO package in JAVA for the same. My intention is to split the HTML attributes and work on it individually for example <img key = value key1= value1 key2= value2 > is a string i get i want to separate keys and values like key = value key1 = value1 key2 = value 2 This works by using below expression "<img\\s*([^>]*)\\s*>" is my Regex in java .. ( you will find a extra / in java when u compare PERL expression ) it works fine in parsing <img src="test" value =10> and spearates src = "test" value = 10. Problem is when one of my value has my delimter > for example if my string to be checked is <img src=<%=Value%> value=10> if fails ( because it has seen a > in src=<%=Value%> ) . But i want the parsing to stop only in the final > Can you pelase Help me in replacing [^>]* such away that it allows %> and stops only in > regards, srini sk -----Original Message----- From: srinivasan [mailto:[email protected]] Sent: Friday, August 16, 2002 2:40 AM To: '[email protected]' Subject: help on forming Regular expression Hi, i am a newbie to this .. "<img\\s*([^>]*)\\s*>" is my Regex in java .. it works fine in parsing <img src="test" value =10> if my string to be checked is <img src=<%=Value%> value=10> if fails ( because it has seen a > in src=<%=Value%> ) . Help me in replacing [^>]* such away that it allows %> and stops only in > 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. ***************************************************************************************