Hello everybody, I need help about Flex Regular Expressions.
I use an AIR tool ("RegExr") to test my reg.expressions but I'm not
very skilled in this field.
I need to find some strings in an html page, for example:
<br><li>site.com - sitename</li><span class="re">text and other code</
span>
<br><li>www.anothersite.com - sitename</li><span class="one">text and
other code</span>
<br><li>sub.site.com - sitename</li><span class="df">text and other
code</span>
<br><li>http://site.com - sitename</li><span class="one">text and
other code</span>
I use this regex:
<br><li>(.+?\.|http://|)site.com - .+?<\/li>
in this way I can find all "site.com" that before have an http:// or
text-subdomain with a point (\.) or null
The error is that this regex return this matches:
<br><li>site.com - sitename</li> OK
<br><li>www.anothersite.com - sitename</li><span class="one">text and
other code</span><br><li>sub.site.com - sitename</li> NO!
<br><li>http://site.com - sitename</li> OK
So it takes also a wrong result matching combing two different rows..
Anybody can help me?
Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---