Title: Message
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="javascript:void(0);" 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="javascript:void(0);" 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
 
**************************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