Re: Need help with a regular expression!
- From: "thedebugger" <sachin.korgaonkar@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Apr 2005 22:50:36 +1000
Hi David,
You need to use this RegEx
<([map][map]*)[^>]*>(.*?)</\1>
Try this, might be usefull. If not then keep your string in one line then
search with above regex.
Regards
Sachin Korgaonkar
"David Hearn" <david.hearn@xxxxxxxxxxxxxxx> wrote in message
news:uw7ECbdQFHA.2948@xxxxxxxxxxxxxxxxxxxxxxx
> I am trying to use RegEx.Match to locate some text in an HTML file. I am
> trying to find everything between <map> files so that I can grab the
> coordinates. The map files looks like this:
>
> <map name="Map4">
> <area shape="rect" coords="160,158,443,163" href="#">
> <area shape="rect" coords="161,166,442,171" href="#">
> <area shape="rect" coords="160,184,433,304" href="#">
> <area shape="rect" coords="160,314,434,446" href="#">
> <area shape="rect" coords="160,455,435,564" href="#">
> </map>
>
> So I need a regular expression to find <map {everything in between} </map>
>
> Can anyone help me with this?
>
> Thanks in advance!
>
>
.
- References:
- Need help with a regular expression!
- From: David Hearn
- Need help with a regular expression!
- Prev by Date: Re: Are satellite assemblies only for ressource ?
- Next by Date: Re: I need some help here
- Previous by thread: Need help with a regular expression!
- Next by thread: Re: Need help with a regular expression!
- Index(es):
Relevant Pages
|