By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,469 Members | 1,885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,469 IT Pros & Developers. It's quick & easy.

regex

P: n/a
Hi for everyone, i need to parse a text and i need to found a text like this:

<objInformation name="<%=Property.name%> version="1">

I try to parse this with this pattern but don't work:

<objInformation(\s+\w+\s*=\s*([(["|']?<\s*%\s*=\s*Property.\w+\s*%\s*>["|']?)
|(["|']?\w+["|']?)]))*>

Anybody what is wrong in this regular expresion?

Thanks,

Alejandro
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"a_********@hotmail.com (Alejandro Narancio)" wrote in comp.lang.java:
Hi for everyone, i need to parse a text and i need to found a text like
this:

<objInformation name="<%=Property.name%> version="1">

I try to parse this with this pattern but don't work:

<objInformation(\s+\w+\s*=\s*([(["|']?<\s*%\s*=\s*Property.\w+\s*%\s*>["|
']?)
|(["|']?\w+["|']?)]))*>

Anybody what is wrong in this regular expresion?


You might want to look over the following web page which discusses
quoting of regular expressions in Java:

regex : Java Glossary
http://mindprod.com/jgloss/regex.html
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.